'''
    This program will load workers resumes from Glassdoor and uniformize the
    college, major, and degree categories.
'''

print("Starting R_create_clean_user_schools_majors.")

import sys
sys.path.insert(0, 'C:/fuzzywuzzy-0.17.0')
sys.path.insert(0, 'C:/fuzzywuzzy-0.17.0/')

import pandas as pd
import numpy as np
import scipy.stats as stats
import matplotlib.pyplot as plt
import csv
import statsmodels.api as sm
from datetime import datetime
from fuzzywuzzy import fuzz
from fuzzywuzzy import process
import string
import gc
import re

gdSeed = "G:/Shared drives/Economic Research/Research/zzz - Jason Sockin Projects/DataGrab"
fileSeed = "C:/Users/jsock/Dropbox/Research/GD/International"

dataPath = gdSeed + "/Resumes/"
inputPath = fileSeed + "/InputData/"
savePath = fileSeed + "/Data/"

##############################################################################
# Read in education resume saved data
##############################################################################

print("Reading in resumes.")

resumes = pd.read_csv(dataPath + "Resumes_educ_01_16_2022.csv")
del resumes['Unnamed: 0']

del resumes['gender']
del resumes['birthYear']
del resumes['highestEducation']

resumes = resumes[resumes.schoolName.notnull()]

resumes.loc[resumes.majorName.notnull(),'majorName'] = resumes[resumes.majorName.notnull()].majorName.apply(lambda x: x.lower())

resumes = resumes.groupby(['FK_userId','schoolName']).tail(1)

# Clean degrees
resumes.loc[resumes.degreeName.notnull(),'degreeName'] = resumes[resumes.degreeName.notnull()].degreeName.apply(lambda x: x.lower())
resumes.loc[resumes.degreeName.notnull(),'degreeName'] = resumes[resumes.degreeName.notnull()].degreeName.apply(lambda x: x.replace('degree','').replace("'",'').strip())
resumes.loc[resumes.degreeName.notnull(),'degreeName'] = resumes[resumes.degreeName.notnull()].degreeName.apply(lambda x: x.replace('.',''))

##############################################################################
# Extract high school and prep educations to be merge separately
##############################################################################

# Flag high school or prep
resumes['highSchool'] = 0
resumes.loc[resumes.schoolName.apply(lambda x: str(x).count('High ')>0) | resumes.schoolName.apply(lambda x: str(x).count(' High')>0),'highSchool'] = 1
resumes.loc[resumes.schoolName.apply(lambda x: str(x).count('Prep ')>0) | resumes.schoolName.apply(lambda x: str(x).count(' Prep')>0),'highSchool'] = 1

# Replace school and major if "High" is in the school name
resumes.loc[resumes.schoolName.apply(lambda x: str(x).count('High ')>0) | resumes.schoolName.apply(lambda x: str(x).count(' High')>0),'schoolName'] = np.nan
resumes.loc[resumes.schoolName.apply(lambda x: str(x).count('High ')>0) | resumes.schoolName.apply(lambda x: str(x).count(' High')>0),'majorName'] = np.nan

# Replace school and major if "Prep" is in the school name
resumes.loc[resumes.schoolName.apply(lambda x: str(x).count('Prep ')>0) | resumes.schoolName.apply(lambda x: str(x).count(' Prep')>0),'schoolName'] = np.nan
resumes.loc[resumes.schoolName.apply(lambda x: str(x).count('Prep ')>0) | resumes.schoolName.apply(lambda x: str(x).count(' Prep')>0),'majorName'] = np.nan

# Kill Nan to missing
resumes.loc[resumes.schoolName=='Nan','schoolName'] = np.nan
resumes.loc[resumes.majorName=='Nan','majorName'] = np.nan

del resumes['highSchool']

##############################################################################
# Merge with cleaner school information 
##############################################################################

print("Read in school info.")

#-----------------------------
# Read in school info (alias, type, location)
#-----------------------------

schoolNames = pd.read_csv(inputPath + "IPEDS_data_schools.csv")

schoolInfo = pd.read_csv(inputPath + "IPEDS_add_schools_info.csv")

schoolLevel = schoolInfo[schoolInfo.VariableName=='Level of institution (HD2017)']
schoolLevel.rename(columns={'ValueLabel':'schoolLevel'},inplace=True)
del schoolLevel['VariableName']

schoolCBSA = schoolInfo[schoolInfo.VariableName=='Core Based Statistical Area (CBSA) (HD2017)']
schoolCBSA.rename(columns={'ValueLabel':'cbsa'},inplace=True)
del schoolCBSA['VariableName']

schoolNames = pd.merge(schoolNames, schoolLevel, how='left', left_on = ['Level of institution (HD2017)'], right_on = ['Value'])
schoolNames = pd.merge(schoolNames, schoolCBSA, how='left', left_on = ['Core Based Statistical Area (CBSA) (HD2017)'], right_on = ['Value'])

schoolNames.rename(columns={'Institution Name':'school'},inplace=True)
schoolNames.rename(columns={'Institution name alias (HD2017)':'alias'},inplace=True)

schoolNames = schoolNames[['school','alias','schoolLevel','cbsa']]

#-----------------------------
# Extract all aliases and keep only unique ones
#-----------------------------

noSplitName = np.array(schoolNames[schoolNames.alias.notnull() & schoolNames.alias.apply(lambda x: str(x).count('|')==0)].school)
noSplitAlias = np.array(schoolNames[schoolNames.alias.notnull() & schoolNames.alias.apply(lambda x: str(x).count('|')==0)].alias)

splitName = np.array(schoolNames[schoolNames.alias.apply(lambda x: str(x).count('|')>0)].school)
splitAlias = np.array(schoolNames[schoolNames.alias.apply(lambda x: str(x).count('|')>0)].alias.apply(lambda x: str(x).split('|')))

allAlias = pd.DataFrame([])

for ii in range(0,len(splitAlias)):
    for jj in range(0,len(splitAlias[ii])):
        
        nextAlias = pd.DataFrame([splitName[ii],str(splitAlias[ii][jj]).lstrip().rstrip()]).T

        allAlias = allAlias.append(nextAlias)

for ii in range(0,len(noSplitAlias)):

        nextAlias = pd.DataFrame([noSplitName[ii],str(noSplitAlias[ii]).lstrip().rstrip()]).T

        allAlias = allAlias.append(nextAlias)
        
allAlias.rename(columns={0:'school'},inplace=True)
allAlias.rename(columns={1:'alias'},inplace=True)

# Keep unique instances
allAlias = allAlias[allAlias.alias!=""]
allAlias = allAlias.groupby(['school','alias']).head(1)        
allAlias['aliasCount'] = allAlias.groupby('alias').cumcount()
aliasCount = pd.DataFrame(allAlias.groupby('alias').aliasCount.max()).reset_index()
allAlias = pd.merge(allAlias, aliasCount, how='left', left_on = ['alias'], right_on = ['alias'])
allAlias = allAlias[allAlias.aliasCount_y==0]
allAlias = allAlias[['school','alias']]

#-----------------------------
# Combine schools and aliases for mergeing cleanly
#-----------------------------

mergeInfo = schoolNames[['school','schoolLevel','cbsa']]
allAlias = pd.merge(allAlias, mergeInfo, how='left', left_on = ['school'], right_on = ['school'])
allAlias.rename(columns={'alias':'mergeSchool'},inplace=True)
allAlias = allAlias[['mergeSchool','school','cbsa','schoolLevel']]

schoolMerge = schoolNames.copy()
schoolMerge['mergeSchool'] = schoolMerge['school']
del schoolMerge['alias']
schoolMerge = schoolMerge[['mergeSchool','school','cbsa','schoolLevel']]

schoolMerge = schoolMerge.append(allAlias)
schoolMerge = schoolMerge.sort_values(['school','mergeSchool'])

del schoolCBSA
del schoolInfo
del schoolLevel
del schoolNames
del splitAlias
del splitName
del aliasCount
del allAlias
del mergeInfo
del noSplitAlias
del noSplitName
del nextAlias

#-----------------------------
# Remove Location distinction from the school name for merge
#-----------------------------

for repWord in ['Design','College','University','School','Arts','Institute','Academy','Technology']:
    schoolMerge.loc[schoolMerge.school.apply(lambda x: str(x).count(repWord + "-")>0),'trimSchool'] = schoolMerge[schoolMerge.school.apply(lambda x: str(x).count(repWord + "-")>0)].school.apply(lambda x: x.split(repWord + "-")[0] + repWord)

# Replace only for those where its not representing clearly different universities
schoolMerge.loc[schoolMerge.trimSchool=='Academy of Hair Design','mergeSchool'] = 'Academy of Hair Design'
schoolMerge.loc[schoolMerge.trimSchool=='Altierus Career College','mergeSchool'] = 'Altierus Career College'
schoolMerge.loc[schoolMerge.trimSchool=='All-State Career School','mergeSchool'] = 'All-State Career School'
schoolMerge.loc[schoolMerge.trimSchool=='American Career College','mergeSchool'] = 'Altierus Career College'
schoolMerge.loc[schoolMerge.trimSchool=='Antioch University','mergeSchool'] = 'Antioch University'
schoolMerge.loc[schoolMerge.trimSchool=='Argosy University','mergeSchool'] = 'Argosy University'
schoolMerge.loc[schoolMerge.trimSchool=='Aveda Institute','mergeSchool'] = 'Aveda Institute'
schoolMerge.loc[schoolMerge.trimSchool=='Branford Hall Career Institute','mergeSchool'] = 'Branford Hall Career Institute'
schoolMerge.loc[schoolMerge.trimSchool=='Brightwood Career Institute','mergeSchool'] = 'Brightwood Career Institute'
schoolMerge.loc[schoolMerge.trimSchool=='Brightwood College','mergeSchool'] = 'Brightwood College'
schoolMerge.loc[schoolMerge.trimSchool=='Brown Mackie College','mergeSchool'] = 'Brown Mackie College'
schoolMerge.loc[schoolMerge.trimSchool=='Bryant & Stratton College','mergeSchool'] = 'Bryant & Stratton College'
schoolMerge.loc[schoolMerge.trimSchool=='Cannella School of Hair Design','mergeSchool'] = 'Cannella School of Hair Design'
schoolMerge.loc[schoolMerge.trimSchool=='Capri Institute of Hair Design','mergeSchool'] = 'Capri Institute of Hair Design'
schoolMerge.loc[schoolMerge.trimSchool=='Career Training Academy','mergeSchool'] = 'Career Training Academy'
schoolMerge.loc[schoolMerge.trimSchool=='Carrington College','mergeSchool'] = 'Carrington College'
schoolMerge.loc[schoolMerge.trimSchool=='Centura College','mergeSchool'] = 'Centura College'
schoolMerge.loc[schoolMerge.trimSchool=='Chamberlain University','mergeSchool'] = 'Chamberlain University'
schoolMerge.loc[schoolMerge.trimSchool=='Concorde Career College','mergeSchool'] = 'Concorde Career College'
schoolMerge.loc[schoolMerge.trimSchool=='Cortiva Institute','mergeSchool'] = 'Cortiva Institute'
schoolMerge.loc[schoolMerge.trimSchool=='DeVry University','mergeSchool'] = 'DeVry University'
schoolMerge.loc[schoolMerge.trimSchool=='Embry-Riddle Aeronautical University','mergeSchool'] = 'Embry-Riddle Aeronautical University'
schoolMerge.loc[schoolMerge.trimSchool=='Empire Beauty School','mergeSchool'] = 'Empire Beauty School'
schoolMerge.loc[schoolMerge.trimSchool=='Florida Career College','mergeSchool'] = 'Florida Career College'
schoolMerge.loc[schoolMerge.trimSchool=='Fortis College','mergeSchool'] = 'Fortis College'
schoolMerge.loc[schoolMerge.trimSchool=='Fortis Institute','mergeSchool'] = 'Fortis Institute'
schoolMerge.loc[schoolMerge.trimSchool=='Herzing University','mergeSchool'] = 'Herzing University'
schoolMerge.loc[schoolMerge.trimSchool=='House of Heavilin Beauty College','mergeSchool'] = 'House of Heavilin Beauty College'
schoolMerge.loc[schoolMerge.trimSchool=='ITT Technical Institute','mergeSchool'] = 'ITT Technical Institute'
schoolMerge.loc[schoolMerge.trimSchool=='Interactive College of Technology','mergeSchool'] = 'Interactive College of Technology'
schoolMerge.loc[schoolMerge.trimSchool=='Kaplan University','mergeSchool'] = 'Kaplan University'
schoolMerge.loc[schoolMerge.trimSchool=='Le Cordon Bleu College of Culinary Arts','mergeSchool'] = 'Le Cordon Bleu College of Culinary Arts'
schoolMerge.loc[schoolMerge.trimSchool=='Lincoln College of Technology','mergeSchool'] = 'Lincoln College of Technology'
schoolMerge.loc[schoolMerge.trimSchool=='Lincoln Technical Institute','mergeSchool'] = 'Lincoln Technical Institute'
schoolMerge.loc[schoolMerge.trimSchool=='Milan Institute','mergeSchool'] = 'Milan Institute'
schoolMerge.loc[schoolMerge.trimSchool=='Miller-Motte College','mergeSchool'] = 'Miller-Motte College'
schoolMerge.loc[schoolMerge.trimSchool=='Miller-Motte Technical College','mergeSchool'] = 'Miller-Motte Technical College'
schoolMerge.loc[schoolMerge.trimSchool=='National American University','mergeSchool'] = 'National American University'
schoolMerge.loc[schoolMerge.trimSchool=='Orange Technical College','mergeSchool'] = 'Orange Technical College'
schoolMerge.loc[schoolMerge.trimSchool=='Paul Mitchell the School','mergeSchool'] = 'Paul Mitchell the School'
schoolMerge.loc[schoolMerge.trimSchool=='Pima Medical Institute','mergeSchool'] = 'Pima Medical Institute'
schoolMerge.loc[schoolMerge.trimSchool=='Platt College','mergeSchool'] = 'Platt College'
schoolMerge.loc[schoolMerge.trimSchool=='Remington College','mergeSchool'] = 'Remington College'
schoolMerge.loc[schoolMerge.trimSchool=='SAE Institute of Technology','mergeSchool'] = 'SAE Institute of Technology'
schoolMerge.loc[schoolMerge.trimSchool=='Salon Success Academy','mergeSchool'] = 'Salon Success Academy'
schoolMerge.loc[schoolMerge.trimSchool=='Sanford-Brown College','mergeSchool'] = 'Sanford-Brown College'
schoolMerge.loc[schoolMerge.trimSchool=='South Texas Vocational Technical Institute','mergeSchool'] = 'South Texas Vocational Technical Institute'
schoolMerge.loc[schoolMerge.trimSchool=='Southern Careers Institute','mergeSchool'] = 'Southern Careers Institute'
schoolMerge.loc[schoolMerge.trimSchool=='Strayer University','mergeSchool'] = 'Strayer University'
schoolMerge.loc[schoolMerge.trimSchool=='Summit Salon Academy','mergeSchool'] = 'Summit Salon Academy'
schoolMerge.loc[schoolMerge.trimSchool=='Tennessee College of Applied Technology','mergeSchool'] = 'Tennessee College of Applied Technology'
schoolMerge.loc[schoolMerge.trimSchool=='The Salon Professional Academy','mergeSchool'] = 'The Salon Professional Academy'
schoolMerge.loc[schoolMerge.trimSchool=='Toni & Guy Hairdressing Academy','mergeSchool'] = 'Toni & Guy Hairdressing Academy'
schoolMerge.loc[schoolMerge.trimSchool=='Tulsa Welding School','mergeSchool'] = 'Tulsa Welding School'
schoolMerge.loc[schoolMerge.trimSchool=='Ultimate Medical Academy','mergeSchool'] = 'Ultimate Medical Academy'
schoolMerge.loc[schoolMerge.trimSchool=='Unitech Training Academy','mergeSchool'] = 'Unitech Training Academy'
schoolMerge.loc[schoolMerge.trimSchool=='United Education Institute','mergeSchool'] = 'United Education Institute'
schoolMerge.loc[schoolMerge.trimSchool=='Universal Technical Institute','mergeSchool'] = 'Universal Technical Institute'
schoolMerge.loc[schoolMerge.trimSchool=='Vatterott College','mergeSchool'] = 'Vatterott College'
schoolMerge.loc[schoolMerge.trimSchool=='Virginia College','mergeSchool'] = 'Virginia College'
schoolMerge.loc[schoolMerge.trimSchool=='Xenon International Academy','mergeSchool'] = 'Xenon International Academy'
schoolMerge.loc[schoolMerge.trimSchool=='YTI Career Institute','mergeSchool'] = 'YTI Career Institute'

schoolMerge = schoolMerge.groupby('mergeSchool').head(1)

del schoolMerge['trimSchool']

gc.collect()

##############################################################################
# Merge school info with main dataset -- SCHOOL 1
##############################################################################

print("Clean first school info.")

resumes['schoolName'] = resumes.schoolName.apply(lambda x: str(x).title())
resumes['schoolName'] = resumes.schoolName.apply(lambda x: str(x).replace(' Of ',' of '))
resumes['schoolName'] = resumes.schoolName.apply(lambda x: str(x).replace('  ',' '))
resumes['schoolName'] = resumes.schoolName.apply(lambda x: str(x).lstrip().rstrip())

schoolsPresent = resumes[['schoolName']]
schoolsPresent = pd.DataFrame(schoolsPresent.groupby('schoolName').size().reset_index())
schoolsPresent = pd.merge(schoolsPresent, schoolMerge, how='left', left_on = ['schoolName'], right_on = ['mergeSchool'])

matchedSchools = schoolsPresent[schoolsPresent.school.notnull()]

unmatchedSchools = schoolsPresent[schoolsPresent.school.isnull()]
unmatchedSchools = unmatchedSchools[unmatchedSchools[0]>=1000]
unmatchedSchools = unmatchedSchools[['schoolName']]
unmatchedSchools = unmatchedSchools[unmatchedSchools.schoolName!='Nan']

newMatches = unmatchedSchools['schoolName'].apply(lambda x: process.extractOne(x,schoolMerge.mergeSchool,scorer=fuzz.token_sort_ratio))
newMatches = newMatches.reset_index()

nextName = [newMatches.schoolName[x][0] for x in range(0,len(newMatches))]
nextScore = [int(newMatches.schoolName[x][1]) for x in range(0,len(newMatches))]

nextResults = pd.DataFrame(np.stack((unmatchedSchools.schoolName,nextName,nextScore))).T
nextResults.rename(columns={0:'unmatched'},inplace=True)
nextResults.rename(columns={1:'match'},inplace=True)
nextResults.rename(columns={2:'score'},inplace=True)
backupResults = nextResults.copy()        

# Keep only clean matches
nextResults = nextResults[nextResults.match!='Ace Institute of Technology']
nextResults = nextResults[nextResults.match!='Aspen University']
nextResults = nextResults[nextResults.match!='Ball State University']
nextResults = nextResults[nextResults.match!='CALC Institute of Technology']
nextResults = nextResults[nextResults.match!='Dean Institute of Technology']
nextResults = nextResults[nextResults.match!='Howard University']
nextResults = nextResults[nextResults.match!='Indiana Institute of Technology']
nextResults = nextResults[nextResults.match!='MIAT Institute of Technology']
nextResults = nextResults[nextResults.match!='McM University']
nextResults = nextResults[nextResults.match!='Post University']
nextResults = nextResults[nextResults.match!='Regent University']
nextResults = nextResults[nextResults.match!='SAE Institute of Technology']
nextResults = nextResults[nextResults.match!='Sofia University']
nextResults = nextResults[nextResults.match!='University of Arizona-South']
nextResults = nextResults[nextResults.match!='University of Colo']
nextResults = nextResults[nextResults.match!='University of Dallas']
nextResults = nextResults[nextResults.match!='University of North Carolina System']
nextResults = nextResults[nextResults.match!='University of South Carolina-Sumter']
nextResults = nextResults[nextResults.match!='OU - Milwaukee']

nextResults = nextResults[nextResults.unmatched!='Ariel University']
nextResults = nextResults[nextResults.unmatched!='Asian Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Atlanta Metropolitan College']
nextResults = nextResults[nextResults.unmatched!='Austin Community College']
nextResults = nextResults[nextResults.unmatched!='Bond University']
nextResults = nextResults[nextResults.unmatched!='Brac University']
nextResults = nextResults[nextResults.unmatched!='Carmel College']
nextResults = nextResults[nextResults.unmatched!='College of Engineering']
nextResults = nextResults[nextResults.unmatched!='Cornwall College']
nextResults = nextResults[nextResults.unmatched!='Cranfield University']
nextResults = nextResults[nextResults.unmatched!='Damelin College']
nextResults = nextResults[nextResults.unmatched!='Darton College']
nextResults = nextResults[nextResults.unmatched!='Denver Technical College']
nextResults = nextResults[nextResults.unmatched!='Empire State University']
nextResults = nextResults[nextResults.unmatched!='Far Eastern University']
nextResults = nextResults[nextResults.unmatched!='Faulkner State Community College']
nextResults = nextResults[nextResults.unmatched!='Green River Community College']
nextResults = nextResults[nextResults.unmatched!='Hanoi University of Science And Technology']
nextResults = nextResults[nextResults.unmatched!='Heald Business College']
nextResults = nextResults[nextResults.unmatched!='Holon Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='International Islamic University']
nextResults = nextResults[nextResults.unmatched!='Ite College Central']
nextResults = nextResults[nextResults.unmatched!='Jackson Community College']
nextResults = nextResults[nextResults.unmatched!='John Cabot University']
nextResults = nextResults[nextResults.unmatched!='Kca University']
nextResults = nextResults[nextResults.unmatched!='Kingston College']
nextResults = nextResults[nextResults.unmatched!='Korea University']
nextResults = nextResults[nextResults.unmatched!='Koç University']
nextResults = nextResults[nextResults.unmatched!='Lagos State University']
nextResults = nextResults[nextResults.unmatched!='Lasalle College']
nextResults = nextResults[nextResults.unmatched!='Leiden University']
nextResults = nextResults[nextResults.unmatched!='Manatee Community College']
nextResults = nextResults[nextResults.unmatched!='Ms University']
nextResults = nextResults[nextResults.unmatched!='Msa University']
nextResults = nextResults[nextResults.unmatched!='Muscatine Community College']
nextResults = nextResults[nextResults.unmatched!='Nescot College']
nextResults = nextResults[nextResults.unmatched!='Norquest College']
nextResults = nextResults[nextResults.unmatched!='North Carolina State University']
nextResults = nextResults[nextResults.unmatched!='North Seattle Community College']
nextResults = nextResults[nextResults.unmatched!='Penn Valley Community College']
nextResults = nextResults[nextResults.unmatched!='Politec Institute']
nextResults = nextResults[nextResults.unmatched!='Pre University']
nextResults = nextResults[nextResults.unmatched!='Preston College']
nextResults = nextResults[nextResults.unmatched!='Segi University']
nextResults = nextResults[nextResults.unmatched!='Seminole Community College']
nextResults = nextResults[nextResults.unmatched!='Southampton University']
nextResults = nextResults[nextResults.unmatched!='Southern University']
nextResults = nextResults[nextResults.unmatched!='Southwest Florida College']
nextResults = nextResults[nextResults.unmatched!='State College']
nextResults = nextResults[nextResults.unmatched!='Swansea Metropolitan University']
nextResults = nextResults[nextResults.unmatched!='Technical Institute']
nextResults = nextResults[nextResults.unmatched!='The University']
nextResults = nextResults[nextResults.unmatched!='Touro University']
nextResults = nextResults[nextResults.unmatched!='Umeå University']
nextResults = nextResults[nextResults.unmatched!='University Of']
nextResults = nextResults[nextResults.unmatched!='University of Akron']
nextResults = nextResults[nextResults.unmatched!='University of Bradford']
nextResults = nextResults[nextResults.unmatched!='University of California']
nextResults = nextResults[nextResults.unmatched!='University of Genoa']
nextResults = nextResults[nextResults.unmatched!='University of Kent']
nextResults = nextResults[nextResults.unmatched!='University of Maryland']
nextResults = nextResults[nextResults.unmatched!='University of Nigeria']
nextResults = nextResults[nextResults.unmatched!='University of Oviedo']
nextResults = nextResults[nextResults.unmatched!='University of Regina']
nextResults = nextResults[nextResults.unmatched!='Abia State University']
nextResults = nextResults[nextResults.unmatched!='Agra University']
nextResults = nextResults[nextResults.unmatched!='Anna University']
nextResults = nextResults[nextResults.unmatched!='Asian College of Technology']
nextResults = nextResults[nextResults.unmatched!='Aston University']
nextResults = nextResults[nextResults.unmatched!='Benha University']
nextResults = nextResults[nextResults.unmatched!='Bolyai University']
nextResults = nextResults[nextResults.unmatched!='Brookhaven Community College']
nextResults = nextResults[nextResults.unmatched!='Cdi College']
nextResults = nextResults[nextResults.unmatched!='Dade Community College']
nextResults = nextResults[nextResults.unmatched!='Gurion University']
nextResults = nextResults[nextResults.unmatched!='Ilan University']
nextResults = nextResults[nextResults.unmatched!='International University']
nextResults = nextResults[nextResults.unmatched!='Iran University of Science And Technology']
nextResults = nextResults[nextResults.unmatched!='Kalinga University']
nextResults = nextResults[nextResults.unmatched!='Kent State University']
nextResults = nextResults[nextResults.unmatched!='Madison University']
nextResults = nextResults[nextResults.unmatched!='Nova Community College']
nextResults = nextResults[nextResults.unmatched!='Oracle University']
nextResults = nextResults[nextResults.unmatched!='Park College']
nextResults = nextResults[nextResults.unmatched!='Sogang University']
nextResults = nextResults[nextResults.unmatched!='Ssn College of Engineering']
nextResults = nextResults[nextResults.unmatched!='State University']
nextResults = nextResults[nextResults.unmatched!='Sti College']
nextResults = nextResults[nextResults.unmatched!='Tulane University']
nextResults = nextResults[nextResults.unmatched!='University of Jos']
nextResults = nextResults[nextResults.unmatched!='University of Law']
nextResults = nextResults[nextResults.unmatched!='University of Mn']
nextResults = nextResults[nextResults.unmatched!='University of Montreal']
nextResults = nextResults[nextResults.unmatched!='University of Seville']
nextResults = nextResults[nextResults.unmatched!='University of South']
nextResults = nextResults[nextResults.unmatched!='University of Washington']
nextResults = nextResults[nextResults.unmatched!='Virginia Tech University']
nextResults = nextResults[nextResults.unmatched!='Virginia Wesleyan College']
nextResults = nextResults[nextResults.unmatched!='West University']
nextResults = nextResults[nextResults.unmatched!='Bnm Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Brandon University']
nextResults = nextResults[nextResults.unmatched!='Brighton University']
nextResults = nextResults[nextResults.unmatched!='Chicago School of Professional Psychology']
nextResults = nextResults[nextResults.unmatched!='Dade College']
nextResults = nextResults[nextResults.unmatched!='Dana College']
nextResults = nextResults[nextResults.unmatched!='Deanza College']
nextResults = nextResults[nextResults.unmatched!='Highline Community College']
nextResults = nextResults[nextResults.unmatched!='Hull College']
nextResults = nextResults[nextResults.unmatched!='International Business School']
nextResults = nextResults[nextResults.unmatched!='Inti International University']
nextResults = nextResults[nextResults.unmatched!='Kean College']
nextResults = nextResults[nextResults.unmatched!='Madras Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Mount Union College']
nextResults = nextResults[nextResults.unmatched!='National Education Center']
nextResults = nextResults[nextResults.unmatched!='Palomar Community College']
nextResults = nextResults[nextResults.unmatched!='Psg College of Arts And Scince']
nextResults = nextResults[nextResults.unmatched!='Roehampton University']
nextResults = nextResults[nextResults.unmatched!='Rowan College']
nextResults = nextResults[nextResults.unmatched!='Seattle Central Community College']
nextResults = nextResults[nextResults.unmatched!='Star Technical Institute']
nextResults = nextResults[nextResults.unmatched!='State Technical Institute']
nextResults = nextResults[nextResults.unmatched!='Tarrant County Community College']
nextResults = nextResults[nextResults.unmatched!='The American University']
nextResults = nextResults[nextResults.unmatched!='The University of Akron']
nextResults = nextResults[nextResults.unmatched!='The University of California']
nextResults = nextResults[nextResults.unmatched!='University of San Jose']
nextResults = nextResults[nextResults.unmatched!='Wayne County Community College']
nextResults = nextResults[nextResults.unmatched!='Air University']
nextResults = nextResults[nextResults.unmatched!='Ama University']
nextResults = nextResults[nextResults.unmatched!='Atria Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Azad University']
nextResults = nextResults[nextResults.unmatched!='De La Salle University']
nextResults = nextResults[nextResults.unmatched!='Ege University']
nextResults = nextResults[nextResults.unmatched!='Gazi University']
nextResults = nextResults[nextResults.unmatched!='Ie University']
nextResults = nextResults[nextResults.unmatched!='Imo State University']
nextResults = nextResults[nextResults.unmatched!='Independent University']
nextResults = nextResults[nextResults.unmatched!='Leeds University']
nextResults = nextResults[nextResults.unmatched!='Mdu University']
nextResults = nextResults[nextResults.unmatched!='National Technological University']
nextResults = nextResults[nextResults.unmatched!='Olympia College']
nextResults = nextResults[nextResults.unmatched!='Plattsburgh State University']
nextResults = nextResults[nextResults.unmatched!='Southern Ct State University']
nextResults = nextResults[nextResults.unmatched!='Southwest University']
nextResults = nextResults[nextResults.unmatched!='University of Santo']
nextResults = nextResults[nextResults.unmatched!='University of Southwestern Louisiana']
nextResults = nextResults[nextResults.unmatched!='University of Verona']
nextResults = nextResults[nextResults.unmatched!='Weston College']
nextResults = nextResults[nextResults.unmatched!='Asia Pacific University']
nextResults = nextResults[nextResults.unmatched!='Bicol University']
nextResults = nextResults[nextResults.unmatched!='Bowen University']
nextResults = nextResults[nextResults.unmatched!='Butte Community College']
nextResults = nextResults[nextResults.unmatched!='Cairo University']
nextResults = nextResults[nextResults.unmatched!='Columban College']
nextResults = nextResults[nextResults.unmatched!='Delhi University']
nextResults = nextResults[nextResults.unmatched!='Derby University']
nextResults = nextResults[nextResults.unmatched!='Hudson Community College']
nextResults = nextResults[nextResults.unmatched!='Mindanao State University']
nextResults = nextResults[nextResults.unmatched!='Mti College of Business And Technology']
nextResults = nextResults[nextResults.unmatched!='Peking University']
nextResults = nextResults[nextResults.unmatched!='Rhodes University']
nextResults = nextResults[nextResults.unmatched!='Rutgers State University']
nextResults = nextResults[nextResults.unmatched!='Salford University']
nextResults = nextResults[nextResults.unmatched!='Scott Community College']
nextResults = nextResults[nextResults.unmatched!='Technical College']
nextResults = nextResults[nextResults.unmatched!='Western Career College']
nextResults = nextResults[nextResults.unmatched!='Western University']
nextResults = nextResults[nextResults.unmatched!='Cambridge University']
nextResults = nextResults[nextResults.unmatched!='Heald Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Sf State University']
nextResults = nextResults[nextResults.unmatched!='Bryant College']
nextResults = nextResults[nextResults.unmatched!='Chico State University']
nextResults = nextResults[nextResults.unmatched!='Maria College']
nextResults = nextResults[nextResults.unmatched!='Acadia University']
nextResults = nextResults[nextResults.unmatched!='Berkley College']
nextResults = nextResults[nextResults.unmatched!='Bradford University']
nextResults = nextResults[nextResults.unmatched!='Collins College']
nextResults = nextResults[nextResults.unmatched!='Marymount College']
nextResults = nextResults[nextResults.unmatched!='Southwest Missouri State University']
nextResults = nextResults[nextResults.unmatched!='East Texas State University']
nextResults = nextResults[nextResults.unmatched!='Lincoln University of Pennsylvania']
nextResults = nextResults[nextResults.unmatched!='Nations University']
nextResults = nextResults[nextResults.unmatched!='Westwood College - Los Angeles']
nextResults = nextResults[nextResults.unmatched!='Alliant International University']
nextResults = nextResults[nextResults.unmatched!='California State University']
nextResults = nextResults[nextResults.unmatched!='Colorado State University']
nextResults = nextResults[nextResults.unmatched!='Delaware Technical And Community College']
nextResults = nextResults[nextResults.unmatched!='Georgia Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Nc A&T State University']
nextResults = nextResults[nextResults.unmatched!='Ohio State University']
nextResults = nextResults[nextResults.unmatched!='Pace University']
nextResults = nextResults[nextResults.unmatched!='Brookline College']
nextResults = nextResults[nextResults.unmatched!='Lake Washington Technical College']
nextResults = nextResults[nextResults.unmatched!='North Georgia College & State University']
nextResults = nextResults[nextResults.unmatched!='Bryan College']
nextResults = nextResults[nextResults.unmatched!='Florida National University']
nextResults = nextResults[nextResults.unmatched!='Lawson State Community College']
nextResults = nextResults[nextResults.unmatched!='Minnesota State University']
nextResults = nextResults[nextResults.unmatched!='North Dakota State University']
nextResults = nextResults[nextResults.unmatched!='Southern Illinois University']
nextResults = nextResults[nextResults.unmatched!='University At Albany']
nextResults = nextResults[nextResults.unmatched!='West Coast University']
nextResults = nextResults[nextResults.unmatched!='Southeastern College']
nextResults = nextResults[nextResults.unmatched!='Arkansas State University']
nextResults = nextResults[nextResults.unmatched!='Georgian College']
nextResults = nextResults[nextResults.unmatched!='Laguna State Polytechnic University']
nextResults = nextResults[nextResults.unmatched!='State College of Florida']
nextResults = nextResults[nextResults.unmatched!='Arizona State University']
nextResults = nextResults[nextResults.unmatched!='Lincoln College (Uk)']
nextResults = nextResults[nextResults.unmatched!='Psg College of Arts And Science']
nextResults = nextResults[nextResults.unmatched!='Southern Arkansas University']
nextResults = nextResults[nextResults.unmatched!='The University of Phoenix']
nextResults = nextResults[nextResults.unmatched!='University of Texas Health Science Center']
nextResults = nextResults[nextResults.unmatched!='Paul Mitchell The School Columbus']
nextResults = nextResults[nextResults.unmatched!="Taylor\'S University"]
nextResults = nextResults[nextResults.unmatched!='The University of Phoenix']
nextResults = nextResults[nextResults.unmatched!='California Southern University']
nextResults = nextResults[nextResults.unmatched!='Penn State University']
nextResults = nextResults[nextResults.unmatched!='Pu College']
nextResults = nextResults[nextResults.unmatched!='The University of New Mexico']
nextResults = nextResults[nextResults.unmatched!='Ayr College']
nextResults = nextResults[nextResults.unmatched!='Florida Community College']
nextResults = nextResults[nextResults.unmatched!='Manila University']
nextResults = nextResults[nextResults.unmatched!='Mass Bay Community College']
nextResults = nextResults[nextResults.unmatched!='Parul University']
nextResults = nextResults[nextResults.unmatched!='The University of Maryland']
nextResults = nextResults[nextResults.unmatched!='American International University']
nextResults = nextResults[nextResults.unmatched!='Carleton University']
nextResults = nextResults[nextResults.unmatched!='Devry Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='University of Texas San Antonio']
nextResults = nextResults[nextResults.unmatched!='Ecpi Technical College']
nextResults = nextResults[nextResults.unmatched!='Interamerican University of Puerto Rico']
nextResults = nextResults[nextResults.unmatched!='Southeast University']

nextResults = nextResults[nextResults.unmatched!='Alton College']
nextResults = nextResults[nextResults.unmatched!='Alvernia College']
nextResults = nextResults[nextResults.unmatched!='Ang University']
nextResults = nextResults[nextResults.unmatched!='Aviv University']
nextResults = nextResults[nextResults.unmatched!='Azhar University']
nextResults = nextResults[nextResults.unmatched!='Bamu University']
nextResults = nextResults[nextResults.unmatched!='Bergen County Community College']
nextResults = nextResults[nextResults.unmatched!='Cochise Community College']
nextResults = nextResults[nextResults.unmatched!='College of Fine Arts']
nextResults = nextResults[nextResults.unmatched!='Compton Community College']
nextResults = nextResults[nextResults.unmatched!='Cuttington University']
nextResults = nextResults[nextResults.unmatched!='Cuyamaca Community College']
nextResults = nextResults[nextResults.unmatched!='Edison College']
nextResults = nextResults[nextResults.unmatched!='Edp University']
nextResults = nextResults[nextResults.unmatched!='Financial University']
nextResults = nextResults[nextResults.unmatched!='Harper Community College']
nextResults = nextResults[nextResults.unmatched!='Henan University']
nextResults = nextResults[nextResults.unmatched!='Husson College']
nextResults = nextResults[nextResults.unmatched!='Icesi University']
nextResults = nextResults[nextResults.unmatched!='Jfk University']
nextResults = nextResults[nextResults.unmatched!='Lcc International University']
nextResults = nextResults[nextResults.unmatched!='Lewisham College']
nextResults = nextResults[nextResults.unmatched!='Macau University of Science And Technology']
nextResults = nextResults[nextResults.unmatched!='Motte Technical College']
nextResults = nextResults[nextResults.unmatched!='Nashville State']
nextResults = nextResults[nextResults.unmatched!='National Power Training Institute']
nextResults = nextResults[nextResults.unmatched!='Nile University']
nextResults = nextResults[nextResults.unmatched!='Northampton University']
nextResults = nextResults[nextResults.unmatched!='Omsk State University']
nextResults = nextResults[nextResults.unmatched!='Orange Coast Community College']
nextResults = nextResults[nextResults.unmatched!='Orlando College']
nextResults = nextResults[nextResults.unmatched!='Osun State University']
nextResults = nextResults[nextResults.unmatched!='Oxford College']
nextResults = nextResults[nextResults.unmatched!='Perm State University']
nextResults = nextResults[nextResults.unmatched!='Shams University']
nextResults = nextResults[nextResults.unmatched!='Southern College']
nextResults = nextResults[nextResults.unmatched!='Southwest State University']
nextResults = nextResults[nextResults.unmatched!='St. Thomas College']
nextResults = nextResults[nextResults.unmatched!='Stonybrook University']
nextResults = nextResults[nextResults.unmatched!='The University of Washington']
nextResults = nextResults[nextResults.unmatched!='University Paris']
nextResults = nextResults[nextResults.unmatched!='University of Kassel']
nextResults = nextResults[nextResults.unmatched!='University of Luton']
nextResults = nextResults[nextResults.unmatched!='University of Orléans']
nextResults = nextResults[nextResults.unmatched!='University of Port']
nextResults = nextResults[nextResults.unmatched!='University of West']
nextResults = nextResults[nextResults.unmatched!='Ural State University']
nextResults = nextResults[nextResults.unmatched!='Viva Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='West Texas State University']
nextResults = nextResults[nextResults.unmatched!='Ansal University']
nextResults = nextResults[nextResults.unmatched!='Bayero University']
nextResults = nextResults[nextResults.unmatched!='Bharat Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Burlington County Community College']
nextResults = nextResults[nextResults.unmatched!='Cuesta Community College']
nextResults = nextResults[nextResults.unmatched!='Greystone College']
nextResults = nextResults[nextResults.unmatched!='Jönköping University']
nextResults = nextResults[nextResults.unmatched!='Kalyani University']
nextResults = nextResults[nextResults.unmatched!='Lima Technical College']
nextResults = nextResults[nextResults.unmatched!='Lincoln Community College']
nextResults = nextResults[nextResults.unmatched!='Merced Community College']
nextResults = nextResults[nextResults.unmatched!='Mountain View Community College']
nextResults = nextResults[nextResults.unmatched!='Naga University']
nextResults = nextResults[nextResults.unmatched!='Nanjing University of Technology']
nextResults = nextResults[nextResults.unmatched!='Nc Wesleyan College']
nextResults = nextResults[nextResults.unmatched!='Notre Dame of Marbel University']
nextResults = nextResults[nextResults.unmatched!='Ogun State University']
nextResults = nextResults[nextResults.unmatched!='Ohlone Community College']
nextResults = nextResults[nextResults.unmatched!='Oswego State University']
nextResults = nextResults[nextResults.unmatched!='Pima College']
nextResults = nextResults[nextResults.unmatched!='Red Academy']
nextResults = nextResults[nextResults.unmatched!='Santa Maria University']
nextResults = nextResults[nextResults.unmatched!='Sns College of Engineering']
nextResults = nextResults[nextResults.unmatched!='Solusi University']
nextResults = nextResults[nextResults.unmatched!='Texas']
nextResults = nextResults[nextResults.unmatched!='The University of Massachusetts']
nextResults = nextResults[nextResults.unmatched!='University of Ado']
nextResults = nextResults[nextResults.unmatched!='University of Cairo']
nextResults = nextResults[nextResults.unmatched!='University of Kwa']
nextResults = nextResults[nextResults.unmatched!='University of Nis']
nextResults = nextResults[nextResults.unmatched!='University of Northern']
nextResults = nextResults[nextResults.unmatched!='University of Nsw']
nextResults = nextResults[nextResults.unmatched!='University of St']
nextResults = nextResults[nextResults.unmatched!='Yuba Community College']
nextResults = nextResults[nextResults.unmatched!='Auckland University']
nextResults = nextResults[nextResults.unmatched!='Benton Community College']
nextResults = nextResults[nextResults.unmatched!='Camden County Community College']
nextResults = nextResults[nextResults.unmatched!='Central South University']
nextResults = nextResults[nextResults.unmatched!='Dav College']
nextResults = nextResults[nextResults.unmatched!='Delta Community College']
nextResults = nextResults[nextResults.unmatched!='Ga State University']
nextResults = nextResults[nextResults.unmatched!='Gmr Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Hackney Community College']
nextResults = nextResults[nextResults.unmatched!='Mit College']
nextResults = nextResults[nextResults.unmatched!='Nri Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Shelby State Community College']
nextResults = nextResults[nextResults.unmatched!='Stow College']
nextResults = nextResults[nextResults.unmatched!='Tar College']
nextResults = nextResults[nextResults.unmatched!='The College']
nextResults = nextResults[nextResults.unmatched!='Triton Community College']
nextResults = nextResults[nextResults.unmatched!='Truro College']
nextResults = nextResults[nextResults.unmatched!='Bms Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Bolton College']
nextResults = nextResults[nextResults.unmatched!='Burton College']
nextResults = nextResults[nextResults.unmatched!='Clark Community College']
nextResults = nextResults[nextResults.unmatched!='College Or A Technical']
nextResults = nextResults[nextResults.unmatched!='Columbia Union College']
nextResults = nextResults[nextResults.unmatched!='Ilia State University']
nextResults = nextResults[nextResults.unmatched!='Lesley College']
nextResults = nextResults[nextResults.unmatched!='Martin College']
nextResults = nextResults[nextResults.unmatched!='Merton College']
nextResults = nextResults[nextResults.unmatched!='Okan University']
nextResults = nextResults[nextResults.unmatched!='Sk University']
nextResults = nextResults[nextResults.unmatched!='Bolton University']
nextResults = nextResults[nextResults.unmatched!='Capitol University']
nextResults = nextResults[nextResults.unmatched!='Concord College']
nextResults = nextResults[nextResults.unmatched!='Granville Community College']
nextResults = nextResults[nextResults.unmatched!='Ny Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Parkland Community College']
nextResults = nextResults[nextResults.unmatched!='Sierra Community College']
nextResults = nextResults[nextResults.unmatched!='South Birmingham College']
nextResults = nextResults[nextResults.unmatched!='South Florida Community College']
nextResults = nextResults[nextResults.unmatched!='Trinity International University']
nextResults = nextResults[nextResults.unmatched!='University of Ca']
nextResults = nextResults[nextResults.unmatched!='University of Graz']
nextResults = nextResults[nextResults.unmatched!='University of La']
nextResults = nextResults[nextResults.unmatched!='University of Nc']
nextResults = nextResults[nextResults.unmatched!='Wales University']
nextResults = nextResults[nextResults.unmatched!='Essex County Community College']
nextResults = nextResults[nextResults.unmatched!='Queensboro Community College']
nextResults = nextResults[nextResults.unmatched!='Southwest Tn Community College']
nextResults = nextResults[nextResults.unmatched!='University of Southern Mindanao']
nextResults = nextResults[nextResults.unmatched!='Clarke College']
nextResults = nextResults[nextResults.unmatched!='College Board']
nextResults = nextResults[nextResults.unmatched!='Elon College']
nextResults = nextResults[nextResults.unmatched!='King College']
nextResults = nextResults[nextResults.unmatched!='Transilvania University']
nextResults = nextResults[nextResults.unmatched!='University of Provence']
nextResults = nextResults[nextResults.unmatched!='Global University']
nextResults = nextResults[nextResults.unmatched!='Guildford College']
nextResults = nextResults[nextResults.unmatched!='Stamford University']
nextResults = nextResults[nextResults.unmatched!='Université Concordia']

# Drop additional mismatches from sample expansion
nextResults = nextResults[nextResults.unmatched!='State University of New York (Suny)']
nextResults = nextResults[nextResults.unmatched!='University of Lincoln']
nextResults = nextResults[nextResults.unmatched!='City University of New York']
nextResults = nextResults[nextResults.unmatched!='University of Manchester']
nextResults = nextResults[nextResults.unmatched!='University of St Andrews']
nextResults = nextResults[nextResults.unmatched!="Saint Mary'S University"]
nextResults = nextResults[nextResults.unmatched!='Mountain State University']

nextResults['keepMatch'] = 0
nextResults.loc[nextResults.score>=90,'keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='American College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Empire State College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Indiana Wesleyan University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Texas Arlington','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Purdue University Calumet','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Suffolk Community College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Suny Albany','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Texas A&M University     College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The Illinois Institute of Art','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University At Buffalo, State University of New York','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Virginia Polytechnic Institute And State University (Virginia Tech)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Montana State University - Bozeman','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Baruch College, Cuny','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='West Chester University of Pa','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Embry-Riddle Aeronautical University - Daytona Beach','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University At Buffalo, The State University of New York','keepMatch'] = 1

nextResults = nextResults[nextResults.keepMatch==1]
del nextResults['keepMatch']

# Merge unmatched matches with fuzzymatch
addSchools = pd.merge(nextResults, schoolMerge, how='left', left_on = ['match'], right_on = ['mergeSchool'])
addSchools = addSchools[['unmatched','school']]
addSchools.rename(columns={'unmatched':'mergeSchool'},inplace=True)

# Combine results
allSchools = matchedSchools[['mergeSchool','school']]
allSchools = allSchools.append(addSchools)

# Add to main dataset
resumes = pd.merge(resumes, allSchools, how='left', left_on = ['schoolName'], right_on = ['mergeSchool'])

del resumes['mergeSchool']

#-----------------------------
# Grab State Universities that weren't picked up
#-----------------------------

print("Add state universities that were missed.")

stateList  =  ['Alabama','Alaska','Arizona','Arkansas','California', \
               'Colorado','Connecticut','Delaware','Florida','Georgia', \
               'Hawaii','Idaho','Illinois','Indiana','Iowa', \
               'Kansas','Kentucky','Louisiana','Maine','Maryland', \
               'Massachusetts','Michigan','Minnesota','Mississippi','Missouri', \
               'Montana','Nebraska','Nevada','New Hampshire','New Jersey', \
               'New Mexico','New York','North Carolina','North Dakota','Ohio', \
               'Oklahoma','Oregon','Pennsylvania','Rhode Island','South Carolina', \
               'South Dakota','Tennessee','Texas','Utah','Vermont', \
               'Virginia','Washington','West Virginia','Wisconsin','Wyoming', \
               'District of Columbia']

for stNum in range(0,len(stateList)):

    state = stateList[stNum]
    
    print("University of " + state)

    resumes.loc[resumes['school'].isnull() & (resumes['schoolName'] == "University of " + state), 'school'] = "University of " + state

    resumes.loc[resumes['school'].isnull() & (resumes['schoolName'] == "The University of " + state), 'school'] = "University of " + state

#-----------------------------
# Add some obvious ones that were missed (which have many resumes)
#-----------------------------

addSchools = ['University of South Florida','University of Cincinnati','Kent State University',
              'Tulane University','West Chester University','Long Island University']

for ii in range(0,len(addSchools)):

    currSchool = addSchools[ii]

    print(currSchool)    

    resumes.loc[resumes['school'].isnull() & ((resumes['schoolName'] == currSchool) | (resumes['schoolName'] == "The " + currSchool)), 'school'] = currSchool

#-----------------------------
# Clean some obvious abbreviations that slipped through cracks
#-----------------------------

resumes.loc[resumes.schoolName=='Purdue University','school'] = 'Purdue University-Main Campus'

resumes.loc[resumes.schoolName=='Texas A&M University','school'] = 'Texas A & M University-College Station'

resumes.loc[resumes.schoolName=='Brigham Young University','school'] = 'Brigham Young University-Provo'

resumes.loc[resumes.schoolName=='Byu (Brigham Young University)','school'] = 'Brigham Young University-Provo'

resumes.loc[resumes.schoolName=='Pennsylvania State University','school'] = 'Pennsylvania State University-Main Campus'

resumes.loc[resumes.schoolName=='North Carolina State University','school'] = 'North Carolina State University at Raleigh'

resumes.loc[resumes.schoolName=='Colorado State University','school'] = 'Colorado State University-Fort Collins'

resumes.loc[resumes.schoolName=='Rutgers, The State University of New Jersey','school'] = 'Rutgers University-Camden'

resumes.loc[resumes.schoolName=='Oklahoma State University','school'] = 'Oklahoma State University-Main Campus'

resumes.loc[resumes.schoolName=='Ohio State University','school'] = 'Ohio State University-Main Campus'

resumes.loc[resumes.schoolName=='The Ohio State University','school'] = 'Ohio State University-Main Campus'

resumes.loc[resumes.schoolName=='Georgia Institute of Technology - Main Campus','school'] = 'Georgia Institute of Technology-Main Campus'

resumes.loc[resumes.schoolName=='Georgia Institute of Technology','school'] = 'Georgia Institute of Technology-Main Campus'

resumes.loc[resumes.schoolName=='Colorado Technical University','school'] = 'Colorado Technical University-Colorado Springs'

resumes.loc[resumes.schoolName=='Ohio University','school'] = 'Ohio University-Main Campus'

resumes.loc[resumes.schoolName=='Bowling Green State University','school'] = 'Bowling Green State University-Main Campus'

resumes.loc[resumes.schoolName=='Missouri State University','school'] = 'Missouri State University-Springfield'

resumes.loc[resumes.schoolName=='University of Pittsburgh - Main Campus','school'] = 'University of Pittsburgh-Pittsburgh Campus'

resumes.loc[resumes.schoolName=='Wright State University','school'] = 'Wright State University-Main Campus'

resumes.loc[resumes.schoolName=='University of Akron','school'] = 'University of Akron Main Campus'

resumes.loc[resumes.schoolName=='Indiana University of Pennsylvania','school'] = 'Indiana University of Pennsylvania-Main Campus'

resumes.loc[resumes.schoolName=='Baruch College of The City University of New York','school'] = 'CUNY Bernard M Baruch College'

resumes.loc[resumes.schoolName=='Southern Illinois University','school'] = 'Southern Illinois University-Carbondale'

resumes.loc[resumes.schoolName=='Fairleigh Dickinson University','school'] = 'Fairleigh Dickinson University-Metropolitan Campus'

resumes.loc[resumes.schoolName=='Auburn University Main Campus','school'] = 'Auburn University'

resumes.loc[resumes.schoolName=='Uconn','school'] = 'University of Connecticut'

resumes.loc[resumes.schoolName=='University At Buffalo, The State University of New York','school'] = 'University at Buffalo'

resumes.loc[resumes.schoolName=='Suny College At Buffalo','school'] = 'University at Buffalo'

resumes.loc[resumes.schoolName=='Binghamton University, State University of New York','school'] = 'Binghamton University'

resumes.loc[resumes.schoolName=='Suny At Binghamton','school'] = 'Binghamton University'

resumes.loc[resumes.schoolName=='Suny Albany','school'] = 'SUNY at Albany'

resumes.loc[resumes.schoolName=='University At Albany','school'] = 'SUNY at Albany'

resumes.loc[resumes.schoolName=='University At Albany, State University of New York','school'] = 'SUNY at Albany'

resumes.loc[resumes.schoolName=='University At Albany, The State University of New York','school'] = 'SUNY at Albany'

resumes.loc[resumes.schoolName=='William Paterson University','school'] = 'William Paterson University of New Jersey'

resumes.loc[resumes.schoolName=='Rutgers – New Brunswick','school'] = 'Rutgers University-Camden'

resumes.loc[resumes.schoolName=='Rutgers University New Brunswick','school'] = 'Rutgers University-Camden'

resumes.loc[resumes.schoolName=='Rutgers','school'] = 'Rutgers University-Camden'

resumes.loc[resumes.schoolName=='University of Pittsburgh','school'] = 'University of Pittsburgh-Pittsburgh Campus'

resumes.loc[resumes.schoolName=='The University of Akron','school'] = 'University of Akron Main Campus'

resumes.loc[resumes.schoolName=='Louisiana State University And A&M College','school'] = 'Louisiana State University and Agricultural & Mechanical College'

resumes.loc[resumes.schoolName=='Pace University - New York','school'] = 'Pace University-New York'

resumes.loc[resumes.schoolName=='Cal Poly Pomona','school'] = 'California State Polytechnic University-Pomona'

resumes.loc[resumes.schoolName=='Hunter College of The City University of New York','school'] = 'CUNY Hunter College'

resumes.loc[resumes.schoolName=='Queens College of The City University of New York','school'] = 'CUNY Queens College'

resumes.loc[resumes.schoolName=='Queens College, City University of New York','school'] = 'CUNY Queens College'

resumes.loc[resumes.schoolName=='Brooklyn College of The City University of New York','school'] = 'CUNY Brooklyn College'

resumes.loc[resumes.schoolName=='Montana State University - Bozeman','school'] = 'Montana State University'

resumes.loc[resumes.schoolName=='Minnesota State University, Mankato','school'] = 'Minnesota State University-Mankato'

resumes.loc[resumes.schoolName=='Suny New Paltz','school'] = 'State University of New York at New Paltz'

resumes.loc[resumes.schoolName=='Suny College At New Paltz','school'] = 'State University of New York at New Paltz'

resumes.loc[resumes.schoolName=='North Dakota State University - Main Campus','school'] = 'North Dakota State University-Main Campus'

resumes.loc[resumes.schoolName=="St. John'S University - New York",'school'] = "St John's University-New York"

resumes.loc[resumes.schoolName=="Shippensburg University",'school'] = "Shippensburg University of Pennsylvania"

resumes.loc[resumes.schoolName=="Slippery Rock University",'school'] = "Slippery Rock University of Pennsylvania"

resumes.loc[resumes.schoolName=="North Carolina Agricultural And Technical State University",'school'] = "North Carolina A & T State University"

resumes.loc[resumes.schoolName=='Buffalo State College','school'] = 'SUNY Buffalo State'

resumes.loc[resumes.schoolName=='Mizzou','school'] = 'University of Missouri-Columbia'

resumes.loc[resumes.schoolName=="Millersville University",'school'] = "Millersville University of Pennsylvania"

resumes.loc[resumes.schoolName=='Asu','school'] = 'Arizona State University-Tempe'

resumes.loc[resumes.schoolName=='Arizona State University','school'] = 'Arizona State University-Tempe'

resumes.loc[resumes.schoolName=='Furman University','school'] = 'Furman'

resumes.loc[resumes.schoolName=='Umass Lowell','school'] = 'University of Massachusetts-Lowell'

resumes.loc[resumes.schoolName=='Maryville University','school'] = 'Maryville University of Saint Louis'

resumes.loc[resumes.schoolName=='Golden Gate University-San Francisco','school'] = 'Golden Gate University-San Francisco'

resumes.loc[resumes.schoolName=='Suny Farmingdale','school'] = 'Farmingdale State College'

resumes.loc[resumes.schoolName=='Umass Boston','school'] = 'University of Massachusetts-Boston'

resumes.loc[resumes.schoolName=='Suny Purchase','school'] = 'SUNY at Purchase College'

resumes.loc[resumes.schoolName=='Augusta State University','school'] = 'Augusta University'

resumes.loc[resumes.schoolName=='Bentley College','school'] = 'Bentley University'

resumes.loc[resumes.schoolName=='State University of New York At Oswego','school'] = 'SUNY College at Oswego'

resumes.loc[resumes.schoolName=='Bloomsburg University','school'] = 'Bloomsburg University of Pennsylvania'

resumes.loc[resumes.schoolName=='Kutztown University','school'] = 'Kutztown University of Pennsylvania'

resumes.loc[resumes.schoolName=='Empire State College','school'] = 'SUNY Empire State College'

resumes.loc[resumes.schoolName=='The University of New Mexico - Unm','school'] = 'University of New Mexico-Main Campus'

resumes.loc[resumes.schoolName=='Uw-Milwaukee','school'] = 'University of Wisconsin-Milwaukee'

resumes.loc[resumes.schoolName=='Wilbur Wright College','school'] = 'City Colleges of Chicago-Wilbur Wright College'

resumes.loc[resumes.schoolName=='Troy State University','school'] = 'Troy University'

resumes.loc[resumes.schoolName=='Suny Plattsburgh','school'] = 'SUNY College at Plattsburgh'

resumes.loc[resumes.schoolName=='Ramapo College','school'] = 'Ramapo College of New Jersey'

resumes.loc[resumes.schoolName=='Unc Chapel Hill','school'] = 'University of North Carolina at Chapel Hill'

resumes.loc[resumes.schoolName=='Unc','school'] = 'University of North Carolina at Chapel Hill'

resumes.loc[resumes.schoolName=='Fashion Institute of Technology, State University of New York','school'] = 'Fashion Institute of Technology'

resumes.loc[resumes.schoolName=='Mercy College - Dobbs Ferry','school'] = 'Mercy College'

resumes.loc[resumes.schoolName=='Bridgewater State College','school'] = 'Bridgewater State University'

resumes.loc[resumes.schoolName=='New York City College of Technology of The City University of New York','school'] = 'CUNY New York City College of Technology'

resumes.loc[resumes.schoolName=='College of Staten Island of The City University of New York','school'] = 'College of Staten Island CUNY'

resumes.loc[resumes.schoolName=='Fitchburg State College','school'] = 'Fitchburg State University'

resumes.loc[resumes.schoolName=='Ucsc','school'] = 'University of California-Santa Cruz'

resumes.loc[resumes.schoolName=='The American University','school'] = 'American University'

resumes.loc[resumes.schoolName=='West Chester University of Pa','school'] = 'West Chester University of Pennsylvania'

resumes.loc[resumes.schoolName=='Uw Madison','school'] = 'University of Wisconsin-Madison'

resumes.loc[resumes.schoolName=='Texas A&M','school'] = 'Texas A & M University-Central Texas'

resumes.loc[resumes.schoolName=='New Mexico State University','school'] = 'New Mexico State University-Main Campus'

resumes.loc[resumes.schoolName=='Arkansas State University','school'] = 'Arkansas State University-Main Campus'

resumes.loc[resumes.schoolName=='Golden Gate University','school'] = 'Golden Gate University-San Francisco'

resumes.loc[resumes.schoolName=='Georgia Perimeter College','school'] = 'Georgia State University-Perimeter College'

resumes.loc[resumes.schoolName=='North Dakota State University','school'] = 'North Dakota State University-Main Campus'

resumes.loc[resumes.schoolName=='St. Louis University-Main Campus','school'] = 'Saint Louis University'

resumes.loc[resumes.schoolName=='Purdue University Calumet','school'] = 'Purdue University-Calumet Campus'

resumes.loc[resumes.schoolName=='California Polytechnic State University (Cal Poly)','school'] = 'California Polytechnic State University-San Luis Obispo'

resumes.loc[resumes.schoolName=='Byu-Idaho','school'] = 'Brigham Young University-Idaho'

resumes.loc[resumes.schoolName=='Thomas Edison State College','school'] = 'Thomas Edison State University'

resumes.loc[resumes.schoolName=='Indiana University','school'] = 'Indiana University-Bloomington'

resumes.loc[resumes.schoolName=='Eastern New Mexico University','school'] = 'Eastern New Mexico University-Main Campus'

resumes.loc[resumes.schoolName=='Indiana Wesleyan University','school'] = 'Indiana Wesleyan University-Marion'

resumes.loc[resumes.schoolName=='Minnesota State University','school'] = 'Minnesota State University-Mankato'

resumes.loc[resumes.schoolName=='Harvard Business School','school'] = 'Harvard University'

resumes.loc[resumes.schoolName=='Harvard','school'] = 'Harvard University'

resumes.loc[resumes.schoolName=='Rutgers Business School','school'] = 'Rutgers University-Camden'

resumes.loc[resumes.schoolName=='Indiana University, Kelley School of Business','school'] = 'Indiana University-Bloomington'

resumes.loc[resumes.schoolName=='California Polytechnic University','school'] = 'California Polytechnic State University-San Luis Obispo'

resumes.loc[resumes.schoolName=='Austin Community College','school'] = 'Austin Community College District'

resumes.loc[resumes.schoolName=='Cuyahoga Community College','school'] = 'Cuyahoga Community College District'

resumes.loc[resumes.schoolName=='Ivy Tech Community College of Indiana','school'] = 'Ivy Tech Community College'

resumes.loc[resumes.schoolName=='Valencia Community College','school'] = 'Valencia College'

resumes.loc[resumes.schoolName=='University of Arkansas, Fayetteville','school'] = 'University of Arkansas'

resumes.loc[resumes.schoolName=='Lone Star College','school'] = 'Lone Star College System'

resumes.loc[resumes.schoolName=='Metropolitan State College of Denver','school'] = 'Metropolitan State University of Denver'

resumes.loc[resumes.schoolName=='Umkc','school'] = 'University of Missouri-Kansas City'

resumes.loc[resumes.schoolName=='Riverside Community College','school'] = 'Riverside City College'

resumes.loc[resumes.schoolName=='Broward Community College','school'] = 'Broward College'

resumes.loc[resumes.schoolName=='Salem State College','school'] = 'Salem State University'

resumes.loc[resumes.schoolName=='Long Island University - C W Post Campus','school'] = 'LIU Post'

resumes.loc[resumes.schoolName=='Wayne County Community College','school'] = 'Wayne County Community College District'

resumes.loc[resumes.schoolName=='Green River Community College','school'] = 'Green River College'

resumes.loc[resumes.schoolName=='Seattle Central Community College','school'] = 'Seattle Central College'

resumes.loc[resumes.schoolName=='Suffolk Community College','school'] = 'Suffolk County Community College'

resumes.loc[resumes.schoolName=='Highline Community College','school'] = 'Highline College'

resumes.loc[resumes.schoolName=='Sacramento State University','school'] = 'California State University-Sacramento'

resumes.loc[resumes.schoolName=='Csu Sacramento','school'] = 'California State University-Sacramento'

resumes.loc[resumes.schoolName=='State University of New York At Fredonia','school'] = 'SUNY at Fredonia'

resumes.loc[resumes.schoolName=='Texas A & M University','school'] = 'Texas A & M University-College Station'

resumes.loc[resumes.schoolName=='Texas A&M University     College','school'] = 'Texas A & M University-College Station'

resumes.loc[resumes.schoolName=='Westfield State College','school'] = 'Westfield State University'

resumes.loc[resumes.schoolName=='Uw Oshkosh','school'] = 'University of Wisconsin-Oshkosh'

resumes.loc[resumes.schoolName=='State University of New York At Oneonta','school'] = 'SUNY Oneonta'

resumes.loc[resumes.schoolName=='State University of New York At Geneseo','school'] = 'SUNY College at Geneseo'

resumes.loc[resumes.schoolName=='Fresno State','school'] = 'California State University-Fresno'

resumes.loc[resumes.schoolName=='Baruch College, City University of New York','school'] = 'CUNY Bernard M Baruch College'

resumes.loc[resumes.schoolName=='Cal Poly San Luis Obispo','school'] = 'California Polytechnic State University-San Luis Obispo'

resumes.loc[resumes.schoolName=='Washburn University of Topeka','school'] = 'Washburn University'

resumes.loc[resumes.schoolName=='Columbia College of Missouri','school'] = 'Columbia College'

resumes.loc[resumes.schoolName=='Palm Beach Community College','school'] = 'Palm Beach State College'

resumes.loc[resumes.schoolName=='State University of New York At Cortland','school'] = 'SUNY Cortland'

resumes.loc[resumes.schoolName=='North Seattle Community College','school'] = 'North Seattle College'

resumes.loc[resumes.schoolName=='University of Texas Arlington','school'] = 'The University of Texas at Arlington'

resumes.loc[resumes.schoolName=='Bellevue Community College','school'] = 'Bellevue College'

resumes.loc[resumes.schoolName=='Unc Greensboro','school'] = 'University of North Carolina at Greensboro'

resumes.loc[resumes.schoolName=='University At Buffalo, State University of New York','school'] = 'University at Buffalo'

resumes.loc[resumes.schoolName=='The College At Brockport, State University of New York','school'] = 'SUNY College at Brockport'

resumes.loc[resumes.schoolName=='Central Missouri State University','school'] = 'University of Central Missouri'

resumes.loc[resumes.schoolName=='Virginia Polytechnic Institute And State University (Virginia Tech)','school'] = 'Virginia Polytechnic Institute and State University'

resumes.loc[resumes.schoolName=='Laguardia Community College of The City University of New York','school'] = 'CUNY LaGuardia Community College'

resumes.loc[resumes.schoolName=='Kingsborough Community College of The City University of New York','school'] = 'CUNY Kingsborough Community College'

resumes.loc[resumes.schoolName=='Suny Binghamton','school'] = 'Binghamton University'

resumes.loc[resumes.schoolName=='South Seattle Community College','school'] = 'South Seattle College'

resumes.loc[resumes.schoolName=='Suny College At Cortland','school'] = 'SUNY Cortland'

resumes.loc[resumes.schoolName=='Brooklyn College, City University of New York','school'] = 'CUNY Brooklyn College'

resumes.loc[resumes.schoolName=='State University of New York At Purchase','school'] = 'SUNY at Purchase College'

resumes.loc[resumes.schoolName=="Hunter College, City University of New York",'school'] = 'CUNY Hunter College'

resumes.loc[resumes.schoolName=="The University of Mississippi - Ole Miss",'school'] = 'University of Mississippi'

resumes.loc[resumes.schoolName=="State University of New York At Farmingdale",'school'] = 'Farmingdale State College'

##############################################################################
# Business schools
##############################################################################

resumes.loc[resumes.schoolName=='University of Southern California, Marshall School of Business','school'] = 'University of Southern California'

resumes.loc[resumes.schoolName=='Fordham University, Gabelli School of Business','school'] = 'Fordham University'

resumes.loc[resumes.schoolName=='Ucla Anderson School of Management','school'] = 'University of California-Los Angeles'

resumes.loc[resumes.schoolName=='Temple University, Fox School of Business','school'] = 'Temple University'

resumes.loc[resumes.schoolName=='Robert H. Smith School of Business, University of Maryland','school'] = 'University of Maryland-College Park'

resumes.loc[resumes.schoolName=='Georgia State University, J. Mack Robinson College of Business','school'] = 'Georgia State University'

resumes.loc[resumes.schoolName=='The Wharton School, University of Pennsylvania','school'] = 'University of Pennsylvania'

resumes.loc[resumes.schoolName=='The Wharton School','school'] = 'University of Pennsylvania'

resumes.loc[resumes.schoolName=='Boston University Questrom School of Business','school'] = 'Boston University'

resumes.loc[resumes.schoolName=='The George Washington University, School of Business','school'] = 'George Washington University'

resumes.loc[resumes.schoolName=='Simon Business School, University of Rochester','school'] = 'University of Rochester'

resumes.loc[resumes.schoolName=='Kelley School of Business, Indiana University','school'] = 'Indiana University-Bloomington'

resumes.loc[resumes.schoolName=='Nyu Stern School of Business','school'] = 'New York University'

resumes.loc[resumes.schoolName=='New York University, Leonard N. Stern School of Business','school'] = 'New York University'

resumes.loc[resumes.schoolName=='Moore School of Business, University of South Carolina','school'] = 'University of South Carolina-Columbia'

resumes.loc[resumes.schoolName=='The University of Chicago Booth School of Business','school'] = 'University of Chicago'

resumes.loc[resumes.schoolName=='University of Chicago Booth School of Business','school'] = 'University of Chicago'

resumes.loc[resumes.schoolName=='University of Cincinnati, Carl H. Lindner College of Business','school'] = 'University of Cincinnati-Main Campus'

resumes.loc[resumes.schoolName=='Purdue University, Krannert School of Management','school'] = 'Purdue University-Main Campus'

resumes.loc[resumes.schoolName=='Santa Clara University, Leavey School of Business','school'] = 'Santa Clara University'

resumes.loc[resumes.schoolName=='The Ohio State University, Fisher College of Business','school'] = 'Ohio State University-Main Campus'

resumes.loc[resumes.schoolName=='University of Utah, David Eccles School of Business','school'] = 'University of Utah'

resumes.loc[resumes.schoolName=='Texas Tech University, Rawls College of Business','school'] = 'Texas Tech University'

resumes.loc[resumes.schoolName=='Southern Methodist University, Cox School of Business','school'] = 'Southern Methodist University'

resumes.loc[resumes.schoolName=='W. P. Carey School of Business At Arizona State University','school'] = 'Arizona State University-Tempe'

resumes.loc[resumes.schoolName=='C.T. Bauer College of Business, University of Houston','school'] = 'University of Houston'

resumes.loc[resumes.schoolName=="Northeastern University, D'Amore-Mckim School of Business",'school'] = 'Northeastern University'

resumes.loc[resumes.schoolName=="University of Connecticut School of Business",'school'] = 'University of Connecticut'

resumes.loc[resumes.schoolName=="Mit Sloan School of Management",'school'] = 'Massachusetts Institute of Technology'

##############################################################################
# Assign the main state university to a school in the list
##############################################################################

resumes.loc[resumes.school=='University of California','school'] = 'University of California-Berkeley'

resumes.loc[resumes.school=='University of Hawaii','school'] = 'University of Hawaii at Manoa'

resumes.loc[resumes.school=='University of Illinois','school'] = 'University of Illinois at Urbana-Champaign'

resumes.loc[resumes.school=='University of Louisiana','school'] = 'University of Louisiana at Lafayette'

resumes.loc[resumes.school=='University of Maryland','school'] = 'University of Maryland-College Park'

resumes.loc[resumes.school=='University of Maryland-University College','school'] = 'University of Maryland-College Park'

resumes.loc[resumes.school=='University of Massachusetts','school'] = 'University of Massachusetts-Amherst'

resumes.loc[resumes.school=='University of Michigan','school'] = 'University of Michigan-Ann Arbor'

resumes.loc[resumes.school=='University of Missouri','school'] = 'University of Missouri-Columbia'

resumes.loc[resumes.school=='University of Minnesota','school'] = 'University of Minnesota-Twin Cities'

resumes.loc[resumes.school=='University of Nebraska','school'] = 'University of Nebraska-Lincoln'

resumes.loc[resumes.school=='University of Nevada','school'] = 'University of Nevada-Reno'

resumes.loc[resumes.school=='University of New Hampshire','school'] = 'University of New Hampshire-Main Campus'

resumes.loc[resumes.school=='University of New Mexico','school'] = 'University of New Mexico-Main Campus'

resumes.loc[resumes.school=='University of North Carolina','school'] = 'University of North Carolina at Chapel Hill'

resumes.loc[resumes.school=='University of South Carolina','school'] = 'University of South Carolina-Columbia'

resumes.loc[resumes.school=='University of Tennessee','school'] = 'The University of Tennessee-Knoxville'

resumes.loc[resumes.school=='University of Texas','school'] = 'The University of Texas at Austin'

resumes.loc[resumes.school=='University of Washington','school'] = 'University of Washington-Seattle Campus'

resumes.loc[resumes.school=='University of Wisconsin','school'] = 'University of Wisconsin-Madison'

resumes.loc[resumes.school=='University of South Florida','school'] = 'University of South Florida-St Petersburg'

resumes.loc[resumes.school=='University of Cincinnati','school'] = 'University of Cincinnati-Main Campus'

resumes.loc[resumes.school=='Kent State University','school'] = 'Kent State University at Kent'

resumes.loc[resumes.school=='Tulane University','school'] = 'Tulane University of Louisiana'

resumes.loc[resumes.school=='West Chester University','school'] = 'West Chester University of Pennsylvania'

resumes.loc[resumes.school=='Long Island University','school'] = 'LIU-University Center Campus'

##############################################################################
# INTERNATIONAL UNIVERSITIES
##############################################################################

#-----------------------------
# UNIRANK LONGER LIST OF WORLD UNIVERSITIES
#-----------------------------

print("Read in school info.")

schoolNames = pd.read_csv(inputPath + "List_international_universities_unirank.csv",encoding='cp1252')

#-----------------------------
# Drop schools in multiple countries
#-----------------------------

schoolCount = schoolNames.groupby('University').size().reset_index()
schoolCount.rename(columns={0:'schoolCount'},inplace=True)

schoolNames = pd.merge(schoolNames, schoolCount, how='left', left_on = ['University'], right_on = ['University'])

schoolNames = schoolNames[schoolNames.schoolCount==1]

schoolNames = schoolNames[schoolNames.Nation!='us']

del schoolNames['schoolCount']

#-----------------------------
# Read in school info (alias, type, location)
#-----------------------------

schoolsUS = pd.read_csv(inputPath + "IPEDS_data_schools.csv")

schoolInfo = pd.read_csv(inputPath + "IPEDS_add_schools_info.csv")

schoolLevel = schoolInfo[schoolInfo.VariableName=='Level of institution (HD2017)']
schoolLevel.rename(columns={'ValueLabel':'schoolLevel'},inplace=True)
del schoolLevel['VariableName']

schoolCBSA = schoolInfo[schoolInfo.VariableName=='Core Based Statistical Area (CBSA) (HD2017)']
schoolCBSA.rename(columns={'ValueLabel':'cbsa'},inplace=True)
del schoolCBSA['VariableName']

schoolsUS = pd.merge(schoolsUS, schoolLevel, how='left', left_on = ['Level of institution (HD2017)'], right_on = ['Value'])
schoolsUS = pd.merge(schoolsUS, schoolCBSA, how='left', left_on = ['Core Based Statistical Area (CBSA) (HD2017)'], right_on = ['Value'])

schoolsUS.rename(columns={'Institution Name':'school'},inplace=True)
schoolsUS.rename(columns={'Institution name alias (HD2017)':'alias'},inplace=True)

schoolsUS = schoolsUS[['school','alias','schoolLevel','cbsa']]

#-----------------------------
# Extract all aliases and keep only unique ones
#-----------------------------

noSplitName = np.array(schoolsUS[schoolsUS.alias.notnull() & schoolsUS.alias.apply(lambda x: str(x).count('|')==0)].school)
noSplitAlias = np.array(schoolsUS[schoolsUS.alias.notnull() & schoolsUS.alias.apply(lambda x: str(x).count('|')==0)].alias)

splitName = np.array(schoolsUS[schoolsUS.alias.apply(lambda x: str(x).count('|')>0)].school)
splitAlias = np.array(schoolsUS[schoolsUS.alias.apply(lambda x: str(x).count('|')>0)].alias.apply(lambda x: str(x).split('|')))

allAlias = pd.DataFrame([])

for ii in range(0,len(splitAlias)):
    for jj in range(0,len(splitAlias[ii])):
        
        nextAlias = pd.DataFrame([splitName[ii],str(splitAlias[ii][jj]).lstrip().rstrip()]).T

        allAlias = allAlias.append(nextAlias)

for ii in range(0,len(noSplitAlias)):

        nextAlias = pd.DataFrame([noSplitName[ii],str(noSplitAlias[ii]).lstrip().rstrip()]).T

        allAlias = allAlias.append(nextAlias)
        
allAlias.rename(columns={0:'school'},inplace=True)
allAlias.rename(columns={1:'alias'},inplace=True)

# Keep unique instances
allAlias = allAlias[allAlias.alias!=""]
allAlias = allAlias.groupby(['school','alias']).head(1)        
allAlias['aliasCount'] = allAlias.groupby('alias').cumcount()
aliasCount = pd.DataFrame(allAlias.groupby('alias').aliasCount.max()).reset_index()
allAlias = pd.merge(allAlias, aliasCount, how='left', left_on = ['alias'], right_on = ['alias'])
allAlias = allAlias[allAlias.aliasCount_y==0]
allAlias = allAlias[['school','alias']]

#-----------------------------
# Combine schools and aliases for mergeing cleanly
#-----------------------------

mergeInfo = schoolsUS[['school','schoolLevel','cbsa']]
allAlias = pd.merge(allAlias, mergeInfo, how='left', left_on = ['school'], right_on = ['school'])
allAlias.rename(columns={'alias':'mergeSchool'},inplace=True)
allAlias = allAlias[['mergeSchool','school','cbsa','schoolLevel']]

schoolMerge = schoolsUS.copy()
schoolMerge['mergeSchool'] = schoolMerge['school']
del schoolMerge['alias']
schoolMerge = schoolMerge[['mergeSchool','school','cbsa','schoolLevel']]

schoolMerge = schoolMerge.append(allAlias)
schoolMerge = schoolMerge.sort_values(['school','mergeSchool'])

del schoolCBSA
del schoolInfo
del schoolLevel
del schoolsUS
del splitAlias
del splitName
del aliasCount
del allAlias
del mergeInfo
del noSplitAlias
del noSplitName
del nextAlias

check = schoolMerge[schoolMerge.school.apply(lambda x: str(x).count('-')>0)].school

#-----------------------------
# Remove Location distinction from the school name for merge
#-----------------------------

for repWord in ['Design','College','University','School','Arts','Institute','Academy','Technology']:
    schoolMerge.loc[schoolMerge.school.apply(lambda x: str(x).count(repWord + "-")>0),'trimSchool'] = schoolMerge[schoolMerge.school.apply(lambda x: str(x).count(repWord + "-")>0)].school.apply(lambda x: x.split(repWord + "-")[0] + repWord)

# Replace only for those where its not representing clearly different universities
schoolMerge.loc[schoolMerge.trimSchool=='Academy of Hair Design','mergeSchool'] = 'Academy of Hair Design'
schoolMerge.loc[schoolMerge.trimSchool=='Altierus Career College','mergeSchool'] = 'Altierus Career College'
schoolMerge.loc[schoolMerge.trimSchool=='All-State Career School','mergeSchool'] = 'All-State Career School'
schoolMerge.loc[schoolMerge.trimSchool=='American Career College','mergeSchool'] = 'Altierus Career College'
schoolMerge.loc[schoolMerge.trimSchool=='Antioch University','mergeSchool'] = 'Antioch University'
schoolMerge.loc[schoolMerge.trimSchool=='Argosy University','mergeSchool'] = 'Argosy University'
schoolMerge.loc[schoolMerge.trimSchool=='Aveda Institute','mergeSchool'] = 'Aveda Institute'
schoolMerge.loc[schoolMerge.trimSchool=='Branford Hall Career Institute','mergeSchool'] = 'Branford Hall Career Institute'
schoolMerge.loc[schoolMerge.trimSchool=='Brightwood Career Institute','mergeSchool'] = 'Brightwood Career Institute'
schoolMerge.loc[schoolMerge.trimSchool=='Brightwood College','mergeSchool'] = 'Brightwood College'
schoolMerge.loc[schoolMerge.trimSchool=='Brown Mackie College','mergeSchool'] = 'Brown Mackie College'
schoolMerge.loc[schoolMerge.trimSchool=='Bryant & Stratton College','mergeSchool'] = 'Bryant & Stratton College'
schoolMerge.loc[schoolMerge.trimSchool=='Cannella School of Hair Design','mergeSchool'] = 'Cannella School of Hair Design'
schoolMerge.loc[schoolMerge.trimSchool=='Capri Institute of Hair Design','mergeSchool'] = 'Capri Institute of Hair Design'
schoolMerge.loc[schoolMerge.trimSchool=='Career Training Academy','mergeSchool'] = 'Career Training Academy'
schoolMerge.loc[schoolMerge.trimSchool=='Carrington College','mergeSchool'] = 'Carrington College'
schoolMerge.loc[schoolMerge.trimSchool=='Centura College','mergeSchool'] = 'Centura College'
schoolMerge.loc[schoolMerge.trimSchool=='Chamberlain University','mergeSchool'] = 'Chamberlain University'
schoolMerge.loc[schoolMerge.trimSchool=='Concorde Career College','mergeSchool'] = 'Concorde Career College'
schoolMerge.loc[schoolMerge.trimSchool=='Cortiva Institute','mergeSchool'] = 'Cortiva Institute'
schoolMerge.loc[schoolMerge.trimSchool=='DeVry University','mergeSchool'] = 'DeVry University'
schoolMerge.loc[schoolMerge.trimSchool=='Embry-Riddle Aeronautical University','mergeSchool'] = 'Embry-Riddle Aeronautical University'
schoolMerge.loc[schoolMerge.trimSchool=='Empire Beauty School','mergeSchool'] = 'Empire Beauty School'
schoolMerge.loc[schoolMerge.trimSchool=='Florida Career College','mergeSchool'] = 'Florida Career College'
schoolMerge.loc[schoolMerge.trimSchool=='Fortis College','mergeSchool'] = 'Fortis College'
schoolMerge.loc[schoolMerge.trimSchool=='Fortis Institute','mergeSchool'] = 'Fortis Institute'
schoolMerge.loc[schoolMerge.trimSchool=='Herzing University','mergeSchool'] = 'Herzing University'
schoolMerge.loc[schoolMerge.trimSchool=='House of Heavilin Beauty College','mergeSchool'] = 'House of Heavilin Beauty College'
schoolMerge.loc[schoolMerge.trimSchool=='ITT Technical Institute','mergeSchool'] = 'ITT Technical Institute'
schoolMerge.loc[schoolMerge.trimSchool=='Interactive College of Technology','mergeSchool'] = 'Interactive College of Technology'
schoolMerge.loc[schoolMerge.trimSchool=='Kaplan University','mergeSchool'] = 'Kaplan University'
schoolMerge.loc[schoolMerge.trimSchool=='Le Cordon Bleu College of Culinary Arts','mergeSchool'] = 'Le Cordon Bleu College of Culinary Arts'
schoolMerge.loc[schoolMerge.trimSchool=='Lincoln College of Technology','mergeSchool'] = 'Lincoln College of Technology'
schoolMerge.loc[schoolMerge.trimSchool=='Lincoln Technical Institute','mergeSchool'] = 'Lincoln Technical Institute'
schoolMerge.loc[schoolMerge.trimSchool=='Milan Institute','mergeSchool'] = 'Milan Institute'
schoolMerge.loc[schoolMerge.trimSchool=='Miller-Motte College','mergeSchool'] = 'Miller-Motte College'
schoolMerge.loc[schoolMerge.trimSchool=='Miller-Motte Technical College','mergeSchool'] = 'Miller-Motte Technical College'
schoolMerge.loc[schoolMerge.trimSchool=='National American University','mergeSchool'] = 'National American University'
schoolMerge.loc[schoolMerge.trimSchool=='Orange Technical College','mergeSchool'] = 'Orange Technical College'
schoolMerge.loc[schoolMerge.trimSchool=='Paul Mitchell the School','mergeSchool'] = 'Paul Mitchell the School'
schoolMerge.loc[schoolMerge.trimSchool=='Pima Medical Institute','mergeSchool'] = 'Pima Medical Institute'
schoolMerge.loc[schoolMerge.trimSchool=='Platt College','mergeSchool'] = 'Platt College'
schoolMerge.loc[schoolMerge.trimSchool=='Remington College','mergeSchool'] = 'Remington College'
schoolMerge.loc[schoolMerge.trimSchool=='SAE Institute of Technology','mergeSchool'] = 'SAE Institute of Technology'
schoolMerge.loc[schoolMerge.trimSchool=='Salon Success Academy','mergeSchool'] = 'Salon Success Academy'
schoolMerge.loc[schoolMerge.trimSchool=='Sanford-Brown College','mergeSchool'] = 'Sanford-Brown College'
schoolMerge.loc[schoolMerge.trimSchool=='South Texas Vocational Technical Institute','mergeSchool'] = 'South Texas Vocational Technical Institute'
schoolMerge.loc[schoolMerge.trimSchool=='Southern Careers Institute','mergeSchool'] = 'Southern Careers Institute'
schoolMerge.loc[schoolMerge.trimSchool=='Strayer University','mergeSchool'] = 'Strayer University'
schoolMerge.loc[schoolMerge.trimSchool=='Summit Salon Academy','mergeSchool'] = 'Summit Salon Academy'
schoolMerge.loc[schoolMerge.trimSchool=='Tennessee College of Applied Technology','mergeSchool'] = 'Tennessee College of Applied Technology'
schoolMerge.loc[schoolMerge.trimSchool=='The Salon Professional Academy','mergeSchool'] = 'The Salon Professional Academy'
schoolMerge.loc[schoolMerge.trimSchool=='Toni & Guy Hairdressing Academy','mergeSchool'] = 'Toni & Guy Hairdressing Academy'
schoolMerge.loc[schoolMerge.trimSchool=='Tulsa Welding School','mergeSchool'] = 'Tulsa Welding School'
schoolMerge.loc[schoolMerge.trimSchool=='Ultimate Medical Academy','mergeSchool'] = 'Ultimate Medical Academy'
schoolMerge.loc[schoolMerge.trimSchool=='Unitech Training Academy','mergeSchool'] = 'Unitech Training Academy'
schoolMerge.loc[schoolMerge.trimSchool=='United Education Institute','mergeSchool'] = 'United Education Institute'
schoolMerge.loc[schoolMerge.trimSchool=='Universal Technical Institute','mergeSchool'] = 'Universal Technical Institute'
schoolMerge.loc[schoolMerge.trimSchool=='Vatterott College','mergeSchool'] = 'Vatterott College'
schoolMerge.loc[schoolMerge.trimSchool=='Virginia College','mergeSchool'] = 'Virginia College'
schoolMerge.loc[schoolMerge.trimSchool=='Xenon International Academy','mergeSchool'] = 'Xenon International Academy'
schoolMerge.loc[schoolMerge.trimSchool=='YTI Career Institute','mergeSchool'] = 'YTI Career Institute'

schoolMerge = schoolMerge.groupby('mergeSchool').head(1)

del schoolMerge['trimSchool']

schoolMerge = schoolMerge[['mergeSchool']]

schoolMerge['isUS'] = 1

#-----------------------------
# Merge international university info with main dataset 
#-----------------------------

print("Clean school info.")

schoolsPresent = resumes[resumes.school.isnull()][['schoolName']]
schoolsPresent = pd.DataFrame(schoolsPresent.groupby('schoolName').size().reset_index())
schoolsPresent = pd.merge(schoolsPresent, schoolNames, how='left', left_on = ['schoolName'], right_on = ['University'])

matchedSchools = schoolsPresent[schoolsPresent.University.notnull()]
matchedSchools = matchedSchools[['schoolName','University','Nation']]

# Keep popular unmatched universities
unmatchedSchools = schoolsPresent[schoolsPresent.University.isnull()]
unmatchedSchools = unmatchedSchools[unmatchedSchools[0]>=500]
unmatchedSchools = unmatchedSchools[['schoolName']]
unmatchedSchools = unmatchedSchools[unmatchedSchools.schoolName!='Nan']

newMatches = unmatchedSchools['schoolName'].apply(lambda x: process.extractOne(x,schoolNames.University,scorer=fuzz.token_sort_ratio))
newMatches = newMatches.reset_index()

nextName = [newMatches.schoolName[x][0] for x in range(0,len(newMatches))]
nextScore = [int(newMatches.schoolName[x][1]) for x in range(0,len(newMatches))]

nextResults = pd.DataFrame(np.stack((unmatchedSchools.schoolName,nextName,nextScore))).T
nextResults.rename(columns={0:'unmatched'},inplace=True)
nextResults.rename(columns={1:'match'},inplace=True)
nextResults.rename(columns={2:'score'},inplace=True)
backupResults = nextResults.copy()        

# Keep only clean matches
nextResults = nextResults[nextResults.score>=90]
nextResults = nextResults[nextResults.unmatched!='Davv University']
nextResults = nextResults[nextResults.unmatched!='Gazi University']
nextResults = nextResults[nextResults.unmatched!='Itm University']
nextResults = nextResults[nextResults.unmatched!='Nmims University']
nextResults = nextResults[nextResults.unmatched!='Northwestern Polytechnic University']
nextResults = nextResults[nextResults.unmatched!='Sim University']
nextResults = nextResults[nextResults.unmatched!='The University']
nextResults = nextResults[nextResults.unmatched!='Koç University']
nextResults = nextResults[nextResults.unmatched!='National Defense University']
nextResults = nextResults[nextResults.unmatched!='Bhilai Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='University of Science And Technology']
nextResults = nextResults[nextResults.unmatched!='Cmr Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Indian Institute of Information Technology']
nextResults = nextResults[nextResults.unmatched!='University of Engineering And Technology']
nextResults = nextResults[nextResults.unmatched!='Tallinn University of Technology']
nextResults = nextResults[nextResults.unmatched!='University of Milan']
nextResults = nextResults[nextResults.unmatched!='University of Tartu']
nextResults = nextResults[nextResults.unmatched!='American International University']
nextResults = nextResults[nextResults.unmatched!='Amrita University']
nextResults = nextResults[nextResults.unmatched!='North Bengal University']
nextResults = nextResults[nextResults.unmatched!='Leiden University']
nextResults = nextResults[nextResults.unmatched!='Indian Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Binus University']
nextResults = nextResults[nextResults.unmatched!='Leiden University']
nextResults = nextResults[nextResults.unmatched!='Kanpur University']
nextResults = nextResults[nextResults.unmatched!='Keiser University']
nextResults = nextResults[nextResults.unmatched!='Haifa University']
nextResults = nextResults[nextResults.unmatched!='University of Applied Sciences']
nextResults = nextResults[nextResults.unmatched!='Ankara University']
nextResults = nextResults[nextResults.unmatched!='National Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='National Technological University']
nextResults = nextResults[nextResults.unmatched!='Punjab University']
nextResults = nextResults[nextResults.unmatched!='Shobhit University']
nextResults = nextResults[nextResults.unmatched!='Thapar University']
nextResults = nextResults[nextResults.unmatched!='Trident University']
nextResults = nextResults[nextResults.unmatched!='National Institute of Science And Technology']
nextResults = nextResults[nextResults.unmatched!='University of San']
nextResults = nextResults[nextResults.unmatched!='Acharya Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Atria Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Interamerican University of Puerto Rico']
nextResults = nextResults[nextResults.unmatched!='Agra University']
nextResults = nextResults[nextResults.unmatched!='Ccs University']
nextResults = nextResults[nextResults.unmatched!='City University']
nextResults = nextResults[nextResults.unmatched!='Dublin Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Essec Business School']
nextResults = nextResults[nextResults.unmatched!='West Coast University']
nextResults = nextResults[nextResults.unmatched!='Azad University']
nextResults = nextResults[nextResults.unmatched!='Technical University']
nextResults = nextResults[nextResults.unmatched!='Pes Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Isenberg School of Management']
nextResults = nextResults[nextResults.unmatched!='Nmam Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Jones International University']
nextResults = nextResults[nextResults.unmatched!='Ms University']
nextResults = nextResults[nextResults.unmatched!='Rns Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Pre University']
nextResults = nextResults[nextResults.unmatched!='Pre-University']
nextResults = nextResults[nextResults.unmatched!='Pune University']
nextResults = nextResults[nextResults.unmatched!='Sona College of Technology']
nextResults = nextResults[nextResults.unmatched!='University of Bologna']
nextResults = nextResults[nextResults.unmatched!='University of Manchester']
nextResults = nextResults[nextResults.unmatched!='University of Trento']
nextResults = nextResults[nextResults.unmatched!='Vtu University']
nextResults = nextResults[nextResults.unmatched!='Agh University of Science And Technology']
nextResults = nextResults[nextResults.unmatched!='Inter American University of Puerto Rico']
nextResults = nextResults[nextResults.unmatched!='Inter-American University of Puerto Rico']
nextResults = nextResults[nextResults.unmatched!='Bandung Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Indian Institute of Management']
nextResults = nextResults[nextResults.unmatched!='Haldia Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Bryan College']
nextResults = nextResults[nextResults.unmatched!='Bharath University']
nextResults = nextResults[nextResults.unmatched!='University of Central']
nextResults = nextResults[nextResults.unmatched!='Curtin University of Technology']
nextResults = nextResults[nextResults.unmatched!='Dehradun Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Digipen Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Ie Business School']
nextResults = nextResults[nextResults.unmatched!='Heritage Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='University of East']
nextResults = nextResults[nextResults.unmatched!='Kaunas University of Technology']
nextResults = nextResults[nextResults.unmatched!='Ip University']
nextResults = nextResults[nextResults.unmatched!='University of Technology']
nextResults = nextResults[nextResults.unmatched!='Amravati University']
nextResults = nextResults[nextResults.unmatched!='Institute of Management Technology']
nextResults = nextResults[nextResults.unmatched!='Islamic Azad University']
nextResults = nextResults[nextResults.unmatched!='Linköping University']
nextResults = nextResults[nextResults.unmatched!='Middle East Technical University']
nextResults = nextResults[nextResults.unmatched!='Narula Institute of Technology']
nextResults = nextResults[nextResults.unmatched!="Saint Martin'S University"]
nextResults = nextResults[nextResults.unmatched!='Sv University']
nextResults = nextResults[nextResults.unmatched!='Technological University']
nextResults = nextResults[nextResults.unmatched!='Trinity International University']
nextResults = nextResults[nextResults.unmatched!='United States International University']
nextResults = nextResults[nextResults.unmatched!='University of Buea']
nextResults = nextResults[nextResults.unmatched!='University of Havana']
nextResults = nextResults[nextResults.unmatched!='University of Law']
nextResults = nextResults[nextResults.unmatched!='University of Malaya']
nextResults = nextResults[nextResults.unmatched!='University of Paris']
nextResults = nextResults[nextResults.unmatched!='University of South Africa']
nextResults = nextResults[nextResults.unmatched!='University of Vienna']
nextResults = nextResults[nextResults.unmatched!='Walchand Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Baku State University']
nextResults = nextResults[nextResults.unmatched!='Boaziçi University']
nextResults = nextResults[nextResults.unmatched!='Charles University']
nextResults = nextResults[nextResults.unmatched!='Cochin University']
nextResults = nextResults[nextResults.unmatched!='Federal University of Technology']
nextResults = nextResults[nextResults.unmatched!='Globe University']
nextResults = nextResults[nextResults.unmatched!='Harrisburg University of Science And Technology']
nextResults = nextResults[nextResults.unmatched!='Hebrew University']
nextResults = nextResults[nextResults.unmatched!='Indian Institute of Technology (Iit)']
nextResults = nextResults[nextResults.unmatched!='International Institute of Information Technology']
nextResults = nextResults[nextResults.unmatched!='Karunya University']
nextResults = nextResults[nextResults.unmatched!='Krishna Institute of Engineering And Technology']
nextResults = nextResults[nextResults.unmatched!='Manipal University']
nextResults = nextResults[nextResults.unmatched!='Mapúa Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Marmara University']
nextResults = nextResults[nextResults.unmatched!='Punjabi University']
nextResults = nextResults[nextResults.unmatched!='Sabanci University']
nextResults = nextResults[nextResults.unmatched!='Sabancı University']
nextResults = nextResults[nextResults.unmatched!='Sakarya University']
nextResults = nextResults[nextResults.unmatched!='Sikkim Manipal Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Sinhgad Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='State University']
nextResults = nextResults[nextResults.unmatched!='University of Rome']
nextResults = nextResults[nextResults.unmatched!='University of Salford International']
nextResults = nextResults[nextResults.unmatched!='University of York']
nextResults = nextResults[nextResults.unmatched!='Aalto University']
nextResults = nextResults[nextResults.unmatched!='Board /University']
nextResults = nextResults[nextResults.unmatched!='Board/University']
nextResults = nextResults[nextResults.unmatched!='Cal State University']
nextResults = nextResults[nextResults.unmatched!='Chico State University']
nextResults = nextResults[nextResults.unmatched!='Csjm University']
nextResults = nextResults[nextResults.unmatched!='Delft University of Technology']
nextResults = nextResults[nextResults.unmatched!='Doane University']
nextResults = nextResults[nextResults.unmatched!='Dublin Institute of Technology (Dit)']
nextResults = nextResults[nextResults.unmatched!='Eae Business School']
nextResults = nextResults[nextResults.unmatched!='Edhec Business School']
nextResults = nextResults[nextResults.unmatched!='Ege University']
nextResults = nextResults[nextResults.unmatched!='Esade Business School']
nextResults = nextResults[nextResults.unmatched!='German University']
nextResults = nextResults[nextResults.unmatched!='Ghent University']
nextResults = nextResults[nextResults.unmatched!='Gitam University']
nextResults = nextResults[nextResults.unmatched!='Gogte Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Icfai Business School']
nextResults = nextResults[nextResults.unmatched!='Iese Business School']
nextResults = nextResults[nextResults.unmatched!='Ignou University']
nextResults = nextResults[nextResults.unmatched!='Jnt University']
nextResults = nextResults[nextResults.unmatched!='M.S. University']
nextResults = nextResults[nextResults.unmatched!='Madras Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Manav Rachna International University']
nextResults = nextResults[nextResults.unmatched!='Manipal Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Mankato State University']
nextResults = nextResults[nextResults.unmatched!='Mapua Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Metro State University']
nextResults = nextResults[nextResults.unmatched!='Miramar College']
nextResults = nextResults[nextResults.unmatched!='Napier University']
nextResults = nextResults[nextResults.unmatched!='National Institute of Information Technology']
nextResults = nextResults[nextResults.unmatched!='National University of Ireland']
nextResults = nextResults[nextResults.unmatched!='National University of Malaysia']
nextResults = nextResults[nextResults.unmatched!='Open University']
nextResults = nextResults[nextResults.unmatched!='Riga Technical University']
nextResults = nextResults[nextResults.unmatched!='Royal Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Sethu Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Sndt University']
nextResults = nextResults[nextResults.unmatched!='Sreenidhi Institute of Science And Technology']
nextResults = nextResults[nextResults.unmatched!='Srm University']
nextResults = nextResults[nextResults.unmatched!='Tampere University of Technology']
nextResults = nextResults[nextResults.unmatched!='Technical University of Denmark']
nextResults = nextResults[nextResults.unmatched!='Touro University']
nextResults = nextResults[nextResults.unmatched!='Tui University']
nextResults = nextResults[nextResults.unmatched!='University / Board']
nextResults = nextResults[nextResults.unmatched!='University College']
nextResults = nextResults[nextResults.unmatched!='University Of']
nextResults = nextResults[nextResults.unmatched!='University of Baroda']
nextResults = nextResults[nextResults.unmatched!='University of Coimbra']
nextResults = nextResults[nextResults.unmatched!='University of Engineering & Technology']
nextResults = nextResults[nextResults.unmatched!='University of Granada']
nextResults = nextResults[nextResults.unmatched!='University of Makati']
nextResults = nextResults[nextResults.unmatched!='University of Porto']
nextResults = nextResults[nextResults.unmatched!='University of Tirana']
nextResults = nextResults[nextResults.unmatched!='University of Trieste']
nextResults = nextResults[nextResults.unmatched!='Warsaw University of Technology']
nextResults = nextResults[nextResults.unmatched!='Western University']
nextResults = nextResults[nextResults.unmatched!='Ama University']
nextResults = nextResults[nextResults.unmatched!='Bamu University']
nextResults = nextResults[nextResults.unmatched!='Western University']
nextResults = nextResults[nextResults.unmatched!='College America']
nextResults = nextResults[nextResults.unmatched!='Mara University of Technology']
nextResults = nextResults[nextResults.unmatched!='Soa University']
nextResults = nextResults[nextResults.unmatched!='Pre University College']
nextResults = nextResults[nextResults.unmatched!='Pre-University College']
nextResults = nextResults[nextResults.unmatched!='Banha University']
nextResults = nextResults[nextResults.unmatched!='Beijing University of Aeronautics And Astronautics']
nextResults = nextResults[nextResults.unmatched!='Cairn University']
nextResults = nextResults[nextResults.unmatched!='Kashmir University']
nextResults = nextResults[nextResults.unmatched!='Malaviya National Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Namur University']
nextResults = nextResults[nextResults.unmatched!='Nova University']
nextResults = nextResults[nextResults.unmatched!='Reading University']
nextResults = nextResults[nextResults.unmatched!='Sns College of Technology']
nextResults = nextResults[nextResults.unmatched!='Tabriz University']
nextResults = nextResults[nextResults.unmatched!='University Technology Mara']
nextResults = nextResults[nextResults.unmatched!='Anna University of Technology']
nextResults = nextResults[nextResults.unmatched!='Davao University']
nextResults = nextResults[nextResults.unmatched!='Heald Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Ilan University']
nextResults = nextResults[nextResults.unmatched!='Koc University']
nextResults = nextResults[nextResults.unmatched!='Ned University']
nextResults = nextResults[nextResults.unmatched!='Norwegian University of Science And Technology']
nextResults = nextResults[nextResults.unmatched!='Parul Institute of Engineering And Technology']
nextResults = nextResults[nextResults.unmatched!='Penn State University']
nextResults = nextResults[nextResults.unmatched!='Sen University']
nextResults = nextResults[nextResults.unmatched!='Silicon Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Umeå University']
nextResults = nextResults[nextResults.unmatched!='Alliant International University']
nextResults = nextResults[nextResults.unmatched!='Australian Institute of Management']
nextResults = nextResults[nextResults.unmatched!='Birla Institute of Management Technology']
nextResults = nextResults[nextResults.unmatched!='Blekinge Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Brno University of Technology']
nextResults = nextResults[nextResults.unmatched!='Eton College']
nextResults = nextResults[nextResults.unmatched!='Eu Business School']
nextResults = nextResults[nextResults.unmatched!='Gandhi Institute of Engineering And Technology']
nextResults = nextResults[nextResults.unmatched!='Institute of Management And Technology']
nextResults = nextResults[nextResults.unmatched!='Institute of Technology And Management']
nextResults = nextResults[nextResults.unmatched!='Korea Advanced Institute of Science And Technology']
nextResults = nextResults[nextResults.unmatched!='Meerut Institute of Engineering And Technology']
nextResults = nextResults[nextResults.unmatched!='Siliguri Institute of Technology']
nextResults = nextResults[nextResults.unmatched!="Sndt Women'S University"]
nextResults = nextResults[nextResults.unmatched!='St. Philips College']
nextResults = nextResults[nextResults.unmatched!='Universidad Católica Argentina']
nextResults = nextResults[nextResults.unmatched!='University of Bonn']
nextResults = nextResults[nextResults.unmatched!='University of Oulu']
nextResults = nextResults[nextResults.unmatched!='University of Parma']
nextResults = nextResults[nextResults.unmatched!='University of Professional Studies']
nextResults = nextResults[nextResults.unmatched!='University of Verona']
nextResults = nextResults[nextResults.unmatched!='Army Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Atlantic International University']
nextResults = nextResults[nextResults.unmatched!='Bnm Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Bolyai University']
nextResults = nextResults[nextResults.unmatched!='College of Engineering And Technology']
nextResults = nextResults[nextResults.unmatched!='Comsats University']
nextResults = nextResults[nextResults.unmatched!='De Paul University']
nextResults = nextResults[nextResults.unmatched!='Derby University']
nextResults = nextResults[nextResults.unmatched!='Gmr Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='International School of Business & Media']
nextResults = nextResults[nextResults.unmatched!='Kdu University College']
nextResults = nextResults[nextResults.unmatched!='Loyola Institute of Business Administration']
nextResults = nextResults[nextResults.unmatched!='Manila University']
nextResults = nextResults[nextResults.unmatched!='Patten University']
nextResults = nextResults[nextResults.unmatched!='Prist University']
nextResults = nextResults[nextResults.unmatched!='School of Management']
nextResults = nextResults[nextResults.unmatched!='Silesian University of Technology']
nextResults = nextResults[nextResults.unmatched!='Turabo University']
nextResults = nextResults[nextResults.unmatched!='University of Heidelberg']
nextResults = nextResults[nextResults.unmatched!='University of Mn']
nextResults = nextResults[nextResults.unmatched!='University of Science']
nextResults = nextResults[nextResults.unmatched!='Akron University']
nextResults = nextResults[nextResults.unmatched!='Amet University']
nextResults = nextResults[nextResults.unmatched!='Azerbaijan State University of Economics']
nextResults = nextResults[nextResults.unmatched!='Babaria Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Board / University']
nextResults = nextResults[nextResults.unmatched!='Board\\University']
nextResults = nextResults[nextResults.unmatched!='Bput University']
nextResults = nextResults[nextResults.unmatched!='Czech Technical University']
nextResults = nextResults[nextResults.unmatched!='Eslsca Business School']
nextResults = nextResults[nextResults.unmatched!='Gdansk University of Technology']
nextResults = nextResults[nextResults.unmatched!='Incae Business School']
nextResults = nextResults[nextResults.unmatched!='Iscte Business School']
nextResults = nextResults[nextResults.unmatched!='Malaysian University']
nextResults = nextResults[nextResults.unmatched!='Malmö University']
nextResults = nextResults[nextResults.unmatched!='Md University']
nextResults = nextResults[nextResults.unmatched!='Mds University']
nextResults = nextResults[nextResults.unmatched!='Mdu University']
nextResults = nextResults[nextResults.unmatched!='National Open University']
nextResults = nextResults[nextResults.unmatched!='Nilai University']
nextResults = nextResults[nextResults.unmatched!='Pace University']
nextResults = nextResults[nextResults.unmatched!='Paris School of Business']
nextResults = nextResults[nextResults.unmatched!='Poznan University of Technology']
nextResults = nextResults[nextResults.unmatched!='Queen Mary University']
nextResults = nextResults[nextResults.unmatched!='Segi University']
nextResults = nextResults[nextResults.unmatched!='Shams University']
nextResults = nextResults[nextResults.unmatched!='The Institute']
nextResults = nextResults[nextResults.unmatched!='Universidad Anáhuac']
nextResults = nextResults[nextResults.unmatched!='Universidad Javeriana']
nextResults = nextResults[nextResults.unmatched!='University /Board']
nextResults = nextResults[nextResults.unmatched!='University Board']
nextResults = nextResults[nextResults.unmatched!='University of Chile']
nextResults = nextResults[nextResults.unmatched!='University of Douala']
nextResults = nextResults[nextResults.unmatched!='University of Minho']
nextResults = nextResults[nextResults.unmatched!='University of Perugia']
nextResults = nextResults[nextResults.unmatched!='University of Turabo']
nextResults = nextResults[nextResults.unmatched!='Università Degli Studi Di Bari']

# More incorrect matches from 2022 update
nextResults = nextResults[nextResults.unmatched!='University of Arts']
nextResults = nextResults[nextResults.unmatched!='University of Bari']
nextResults = nextResults[nextResults.unmatched!='Université Concordia']
nextResults = nextResults[nextResults.unmatched!='Institute of Science And Technology']
nextResults = nextResults[nextResults.unmatched!='Ism University of Management And Economics']
nextResults = nextResults[nextResults.unmatched!='London University']
nextResults = nextResults[nextResults.unmatched!='Trakia University']
nextResults = nextResults[nextResults.unmatched!='Apec University']
nextResults = nextResults[nextResults.unmatched!='Bharat Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Indian Institute of Engineering Science And Technology']
nextResults = nextResults[nextResults.unmatched!='Ipade Business School']
nextResults = nextResults[nextResults.unmatched!='Kota University']
nextResults = nextResults[nextResults.unmatched!='Noida Institute of Engineering And Technology']
nextResults = nextResults[nextResults.unmatched!='Bapuji Institute of Engineering And Technology']
nextResults = nextResults[nextResults.unmatched!='Institute of Education']
nextResults = nextResults[nextResults.unmatched!='Institute of Technology & Management']
nextResults = nextResults[nextResults.unmatched!='Izmir Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='School of Planning And Architecture']
nextResults = nextResults[nextResults.unmatched!='Universidad Internacional De La Rioja']
nextResults = nextResults[nextResults.unmatched!='University of Malaga']
nextResults = nextResults[nextResults.unmatched!='University of Manila']
nextResults = nextResults[nextResults.unmatched!='Arden University']
nextResults = nextResults[nextResults.unmatched!='Bms Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Indira Gandhi Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Mayo Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Nri Institute of Technology']
nextResults = nextResults[nextResults.unmatched!='Sydney University']
nextResults = nextResults[nextResults.unmatched!='Technology University']
nextResults = nextResults[nextResults.unmatched!='The University of Glasgow']
nextResults = nextResults[nextResults.unmatched!='University of Kwa']
nextResults = nextResults[nextResults.unmatched!='Université Paris 8']
nextResults = nextResults[nextResults.unmatched!='Wroclaw University of Science And Technology']
nextResults = nextResults[nextResults.unmatched!='Aktu University']
nextResults = nextResults[nextResults.unmatched!='Ang University']
nextResults = nextResults[nextResults.unmatched!='Board University']
nextResults = nextResults[nextResults.unmatched!='Board/ University']
nextResults = nextResults[nextResults.unmatched!='Egade Business School']
nextResults = nextResults[nextResults.unmatched!='Fae Business School']
nextResults = nextResults[nextResults.unmatched!='Federal Institute of Science And Technology']
nextResults = nextResults[nextResults.unmatched!='Gdańsk University of Technology']
nextResults = nextResults[nextResults.unmatched!='Hull University']
nextResults = nextResults[nextResults.unmatched!='Imd Business School']
nextResults = nextResults[nextResults.unmatched!='M.S.University']
nextResults = nextResults[nextResults.unmatched!='Maastricht School of Management']
nextResults = nextResults[nextResults.unmatched!='Medical University']
nextResults = nextResults[nextResults.unmatched!='Rhyne University']
nextResults = nextResults[nextResults.unmatched!='Salle University']
nextResults = nextResults[nextResults.unmatched!='Srtm University']
nextResults = nextResults[nextResults.unmatched!='Universidad Católica']
nextResults = nextResults[nextResults.unmatched!='Universidade Federal']
nextResults = nextResults[nextResults.unmatched!='University of Bergen']
nextResults = nextResults[nextResults.unmatched!='University of Bremen']
nextResults = nextResults[nextResults.unmatched!='University of Computer Studies']
nextResults = nextResults[nextResults.unmatched!='University of Liège']
nextResults = nextResults[nextResults.unmatched!='University of Turku']
nextResults = nextResults[nextResults.unmatched!='Wits University']


# Keep singular matches with low scores but correct
otherResults = backupResults[backupResults.score<90]
otherResults['keepMatch'] = 0
otherResults.loc[otherResults.unmatched=='Bharati Vidyapeeth University','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Galatasaray University','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Maulana Abul Kalam Azad University of Technology','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Pompeu Fabra University','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Radboud University','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Spiru Haret University','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Unip - Universidade Paulista','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='University of Petroleum & Energy Studies (Upes)','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='University of Strasbourg','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='University of The West of England, Bristol','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Utrecht University','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Dokuz Eylül University','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Hacettepe University','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='University of Mannheim','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='University of Stuttgart','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Birla Institute of Technology And Science (Bits) - Pilani','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Goethe-Universität Frankfurt','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Grenoble Ecole De Management','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Istanbul University','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Mackenzie Presbyterian University','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Sapienza University of Rome','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='The College of St. Scholastica','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='University of Hamburg','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='University of Southern Queensland - Australia','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='University of The West Indies','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Yeditepe University','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Andrés Bello Catholic University','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Bahcesehir University','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Bilkent University','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Central University of Venezuela','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='De La Salle University-Manila','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Dokuz Eylul University','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Grant Macewan University','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Humboldt University of Berlin','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Ludwig Maximilian University of Munich','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Nanyang Technological University, Singapore','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='University of Stellenbosch','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Federal University of Rio Grande Do Sul','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Amity University, Noida','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Federal University of Rio De Janeiro','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Kingston University, London','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Narsee Monjee Institute of Management Studies (Nmims)','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='The University of Newcastle, Australia','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Birla Institute of Technology & Science, Pilani - Goa','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Complutense University of Madrid','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='I. K. Gujral Punjab Technical University','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='University of Buenos Aires','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='University of Madras, Chennai','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='University of Zurich','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Delhi Technological University (Formerly Dce)','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Pontifical Catholic University of Chile','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Università Cattolica Del Sacro Cuore - Sede Di Milano','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Bournemouth Uni.','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Maharaja Sayajirao University','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Pontifical Catholic University of Rio De Janeiro','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Pontifical Catholic University of São Paulo','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='London School of Economics And Social Science','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Autonomous University of Barcelona','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Nelson Mandela Metropolitan University','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Uni. Hertfordshire','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Université Paris-Est Créteil (Upec)','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Uow: University of Wollongong, Australia','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Uni. Strathclyde','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Uni. Westminster','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Uni. Portsmouth','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Uni. Plymouth','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Abdul Kalam Technical University','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Anhembi Morumbi University','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Goldsmiths College, University of London','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Government College University','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Narsee Monjee Institute of Management Studies','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Simón Bolívar University','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Universidade Paulista (Unip)','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Universidade Paulista - Unip','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Universidade Paulista Unip','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Universitat De València','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Birkbeck College, University of London','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Free University of Berlin','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='University Technology Malaysia','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='University of Kwazulu','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='University of Santiago De Compostela','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='University of St. Gallen','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Parahyangan Catholic University','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Uninove - Universidade Nove De Julho','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Universidad Jorge Tadeo Lozano','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Universidade Nove De Julho - Uninove','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Akdeniz University','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Beykent University','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='University of Indonesia','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Helwan University Cairo','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Middlesex University London','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Amity University Noida','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Kingston University London','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='London Southbank University','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Bahçeşehir University','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Makerere University Kampala','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Federal University of Pernambuco','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Imperial College','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Lyceum of The Philippines','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Universidad Complutense','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='University of Rome La Sapienza','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='University of Valladolid','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Alexandru Ioan Cuza University','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=="Ca' Foscari University of Venice",'keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Mykolas Romeris University','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Shivaji University Kolhapur','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Shivaji University, Kolhapur','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Jamia Millia Islamia University','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Neoma Business School - Campus Rouen','keepMatch'] = 1

# More correct matches from 2022 update
otherResults.loc[otherResults.unmatched=='Jawaharlal Nehru Technological University Hyderabad','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='K. N. Toosi University of Technology','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Unip Universidade Paulista','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Unopar - Universidade Norte Do Paraná','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Kadir Has University','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Simon Bolivar University','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='University of Bamenda','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='University of Bordeaux','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='University of Poitiers','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Universidade Nove De Julho (Uninove)','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='Erciyes University','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='University of Brawijaya','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='University of Fribourg','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='University of Rome Tor Vergata','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='University of Rajasthan (Rajasthan University)','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='University of Pretoria/Universiteit Van Pretoria','keepMatch'] = 1
otherResults.loc[otherResults.unmatched=='University of Modena And Reggio Emilia','keepMatch'] = 1


otherResults = otherResults[otherResults.keepMatch==1]
del otherResults['keepMatch']

nextResults = nextResults.append(otherResults)

# Merge unmatched matches with fuzzymatch
addSchools = pd.merge(nextResults, schoolNames, how='left', left_on = ['match'], right_on = ['University'])
addSchools = addSchools[['unmatched','University','Nation']]
addSchools.rename(columns={'unmatched':'schoolName'},inplace=True)

# Combine results
allSchools = matchedSchools.copy()
allSchools = allSchools.append(addSchools)

# Add to main dataset
resumes = pd.merge(resumes, allSchools, how='left', left_on = ['schoolName'], right_on = ['schoolName'])

# Combine cleaned university and school variables and denote U.S. institutions
resumes.loc[resumes.school.notnull(),'Nation'] = 'us'
resumes.loc[resumes.school.isnull() & resumes.University.notnull(),'school'] = resumes[resumes.school.isnull() & resumes.University.notnull()]['University']
del resumes['University']

#-----------------------------
# CWUR WORLD RANKINGS FOR ADDITIONAL LIST OF UNIVERSITIES TO MERGE WITH
#-----------------------------

print("Read in school info.")

cwurNames = pd.read_csv(inputPath + "CWUR_world_rankings_2019_2020.csv",encoding='cp1252')

#-----------------------------
# Add nation identifiers to cwur list
#-----------------------------

countryID = pd.read_csv(inputPath + "Country_identifiers.csv",encoding='cp1252')

cwurNames.loc[cwurNames.Location=='USA','Location'] = 'United States of America (the)'
cwurNames.loc[cwurNames.Location=='United Kingdom','Location'] = 'United Kingdom of Great Britain and Northern Ireland (the)'
cwurNames.loc[cwurNames.Location=='Netherlands','Location'] = 'Netherlands (the)'
cwurNames.loc[cwurNames.Location=='South Korea','Location'] = "Korea (the Democratic People's Republic of)"
cwurNames.loc[cwurNames.Location=='Russia','Location'] = 'Russian Federation (the)'
cwurNames.loc[cwurNames.Location=='Iran','Location'] = 'Iran (Islamic Republic of)'
cwurNames.loc[cwurNames.Location=='Taiwan','Location'] = 'Taiwan (Province of China)'
cwurNames.loc[cwurNames.Location=='Czech Republic','Location'] = 'Czechia'
cwurNames.loc[cwurNames.Location=='Philippines','Location'] = 'Philippines (the)'
cwurNames.loc[cwurNames.Location=='Vietnam','Location'] = 'Viet Nam'
cwurNames.loc[cwurNames.Location=='United Arab Emirates','Location'] = 'United Arab Emirates (the)'
cwurNames.loc[cwurNames.Location=='Slovak Republic','Location'] = 'Slovakia'
cwurNames.loc[cwurNames.Location=='Venezuela','Location'] = 'Venezuela (Bolivarian Republic of)'
cwurNames.loc[cwurNames.Location=='Tanzania','Location'] = 'Tanzania, United Republic of'

cwurNames = pd.merge(cwurNames, countryID, how='left', left_on = ['Location'], right_on = ['Country'])

cwurNames = cwurNames[['Institution','Alpha2']]

#-----------------------------
# Drop schools in multiple countries
#-----------------------------

schoolCount = cwurNames.groupby('Institution').size().reset_index()
schoolCount.rename(columns={0:'schoolCount'},inplace=True)

cwurNames = pd.merge(cwurNames, schoolCount, how='left', left_on = ['Institution'], right_on = ['Institution'])

cwurNames = cwurNames[cwurNames.schoolCount==1]

del cwurNames['schoolCount']

#-----------------------------
# Keep only universities that have yet to be matched
#-----------------------------

matchedUniversities = resumes[resumes.school.notnull()].groupby('school').size().reset_index()

cwurNames = pd.merge(cwurNames, matchedUniversities, how='left', left_on = ['Institution'], right_on = ['school'])

cwurNames = cwurNames[cwurNames.school.isnull()]

cwurNames = cwurNames[['Institution','Alpha2']]

#-----------------------------
# Merge cwur university names with main dataset 
#-----------------------------

print("Clean school info.")

schoolsPresent = resumes[resumes.school.isnull()][['schoolName']]
schoolsPresent = pd.DataFrame(schoolsPresent.groupby('schoolName').size().reset_index())
schoolsPresent = pd.merge(schoolsPresent, cwurNames, how='left', left_on = ['schoolName'], right_on = ['Institution'])

matchedSchools = schoolsPresent[schoolsPresent.Institution.notnull()]
matchedSchools = matchedSchools[['schoolName','Institution','Alpha2']]

# Keep popular unmatched universities
unmatchedSchools = schoolsPresent[schoolsPresent.Institution.isnull()]
unmatchedSchools = unmatchedSchools[unmatchedSchools[0]>=500]
unmatchedSchools = unmatchedSchools[['schoolName']]
unmatchedSchools = unmatchedSchools[unmatchedSchools.schoolName!='Nan']

newMatches = unmatchedSchools['schoolName'].apply(lambda x: process.extractOne(x,cwurNames.Institution,scorer=fuzz.token_sort_ratio))
newMatches = newMatches.reset_index()
nextName = [newMatches.schoolName[x][0] for x in range(0,len(newMatches))]
nextScore = [int(newMatches.schoolName[x][1]) for x in range(0,len(newMatches))]

nextResults = pd.DataFrame(np.stack((unmatchedSchools.schoolName,nextName,nextScore))).T
nextResults.rename(columns={0:'unmatched'},inplace=True)
nextResults.rename(columns={1:'match'},inplace=True)
nextResults.rename(columns={2:'score'},inplace=True)
backupResultsCWUR = nextResults.copy()        

# Keep matches
nextResults['keepMatch'] = 0
nextResults.loc[nextResults.score==100,'keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Puerto Rico - Rio Piedras Campus','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Sabanci University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Sabancı University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Texas Health Science Center Houston','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Università Bocconi','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='California State University of Los Angeles','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='California State University of Sacramento','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Southern Illinois University At Carbondale','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Illinois Urbana-Champaign','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Maryland At College Park','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Tennessee At Knoxville','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Texas San Antonio','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='National University of Malaysia','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Polytechnic University of Bucharest','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of Texas At El Paso','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of California, Los Angeles (Ucla)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Franklin And Marshall College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Louisiana State University (Lsu)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The College of William & Mary','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Maryland  College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Maryland College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Warwick University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Fundação Getúlio Vargas','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Open University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of South Africa (Unisa)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Fundação Getulio Vargas','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Texas A&M University  College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Texas A&M University - College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Texas A&M University College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Università Di Bologna','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Utrgv - The University of Texas Rio Grande Valley','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The Open University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Baruch College, Cuny','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Indiana University Purdue University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Indiana University-Purdue University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Embry-Riddle Aeronautical University - Daytona Beach','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Embry–Riddle Aeronautical University, Daytona Beach','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of North Texas','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Oklahoma State University–Stillwater','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Illinois Urbana','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Poznan University of Technology','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Sao Paulo','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Université Paris Descartes','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Université Paris Diderot','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Uludag University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Koc University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Arkansas At Fayetteville','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of California At Los Angeles','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of California At San Diego','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of California At Santa Barbara','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of California At Santa Cruz','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Massachusetts At Amherst','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Massachusetts At Lowell','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University Technology Mara','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of California At Davis','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Nebraska At Lincoln','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Texas Austin','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Texas El Paso','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Southern University A&M College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The Pennsylvania State University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of California Los Angeles (Ucla)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Edinburgh University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Nottingham University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Sheffield University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Maryland     College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Warsaw University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Cuny College of Staten Island','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Namur University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Université De Cergy-Pontoise','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Cal State University Northridge','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Technical University of Cluj','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Bolyai University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of Texas At El Paso (Utep)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Brooklyn College, Cuny','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Università Di Pisa','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Adam Mickiewicz University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Baruch College/Cuny','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Cuny Baruch College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Hunter College, Cuny','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Yildiz Technical University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Yıldız Technical University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Unisa - The University of South Africa','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Fgv - Fundação Getúlio Vargas','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Fundação Getúlio Vargas (Fgv)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Fundação Getúlio Vargas - Fgv','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Fgv - Fundação Getulio Vargas','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Complutense University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Radboud University Nijmegen','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='North Carolina Agricultural & Technical State University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Bernard Baruch College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Tulane University Law School','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Bernard M. Baruch College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=="St. John'S University School of Law",'keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universitat Oberta De Catalunya','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Arizona State','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Cal State Los Angeles','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='State University of New York At Albany','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Cal State Northridge','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Columbia University, Columbia College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Cuny Brooklyn','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universität Mannheim - University of Mannheim','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Georgia Institute of Technology, Scheller College of Business','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Rutgers University, Rutgers Business School','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Texas San Antonio','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The Pennsylvania State University, Smeal College of Business','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of South Africa/Universiteit Van Suid-Afrika','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Amsterdam / Universiteit Van Amsterdam','keepMatch'] = 1

# Added for 2022 extension
nextResults.loc[nextResults.unmatched=='Université Paris-Est Créteil','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Cukurova University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Indiana University-Purdue University At Indianapolis','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Malaga','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Technical University Munich','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Belgrade University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Bucharest University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Hong Kong University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Wroclaw University of Science And Technology','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Sydney University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Hull University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Cal State University Fullerton','keepMatch'] = 1

nextResults = nextResults[nextResults.keepMatch==1]
del nextResults['keepMatch']

# Merge unmatched matches with fuzzymatch
addSchools = pd.merge(nextResults, cwurNames, how='left', left_on = ['match'], right_on = ['Institution'])
addSchools = addSchools[['unmatched','Institution','Alpha2']]
addSchools.rename(columns={'unmatched':'schoolName'},inplace=True)

# Combine results
allSchools = matchedSchools.copy()
allSchools = allSchools.append(addSchools)

allSchools['Alpha2'] = allSchools.Alpha2.apply(lambda x: str(x).lower())

# Add to main dataset
resumes = pd.merge(resumes, allSchools, how='left', left_on = ['schoolName'], right_on = ['schoolName'])

# Combine cleaned university and school variables and denote U.S. institutions
resumes.loc[resumes.school.isnull() & resumes.Institution.notnull(),'Nation'] = resumes[resumes.school.isnull() & resumes.Institution.notnull()]['Alpha2']
resumes.loc[resumes.school.isnull() & resumes.Institution.notnull(),'school'] = resumes[resumes.school.isnull() & resumes.Institution.notnull()]['Institution']
del resumes['Institution']
del resumes['Alpha2']

##############################################################################
# MANUALLY ADD INTERNATIONAL UNIVERSITIES WITH PROMINENT COVERAGE BUT NOT MERGED - NEW NAME
##############################################################################

print("Add international schools.")

resumes.loc[resumes.schoolName=='London School of Economics','school'] = 'The London School of Economics and Political Science'
resumes.loc[resumes.schoolName=='London School of Economics','Nation'] = 'gb'
resumes.loc[resumes.schoolName=='London School of Economics and Social Science','school'] = 'The London School of Economics and Political Science'
resumes.loc[resumes.schoolName=='London School of Economics and Social Science','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='Leeds Metropolitan University','school'] = 'Leeds Beckett University'
resumes.loc[resumes.schoolName=='Leeds Metropolitan University','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='Ucl','school'] = 'University College London'
resumes.loc[resumes.schoolName=='Ucl','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='Polytechnic University of Tirana','school'] = 'Polytechnic University of Tirana'
resumes.loc[resumes.schoolName=='Polytechnic University of Tirana','Nation'] = 'al'

resumes.loc[resumes.schoolName=='Brunel University','school'] = 'Brunel University London'
resumes.loc[resumes.schoolName=='Brunel University','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='Kingston University, London','school'] = 'Kingston University'
resumes.loc[resumes.schoolName=='Kingston University, London','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='Polytechnic University of Milan','school'] = 'Politecnico di Milano'
resumes.loc[resumes.schoolName=='Polytechnic University of Milan','Nation'] = 'it'
resumes.loc[resumes.schoolName=='Polytechnic of Milan','school'] = 'Politecnico di Milano'
resumes.loc[resumes.schoolName=='Polytechnic of Milan','Nation'] = 'it'

resumes.loc[resumes.schoolName=='University of Milan','school'] = 'Università degli Studi di Milano'
resumes.loc[resumes.schoolName=='University of Milan','Nation'] = 'it'
resumes.loc[resumes.schoolName=='Università Statale Di Milano','school'] = 'Università degli Studi di Milano'
resumes.loc[resumes.schoolName=='Università Statale Di Milano','Nation'] = 'it'

resumes.loc[resumes.schoolName=='Università Degli Studi Di Milano Bicocca','school'] = 'Università degli Studi di Milano-Bicocca'
resumes.loc[resumes.schoolName=='Università Degli Studi Di Milano Bicocca','Nation'] = 'it'

resumes.loc[resumes.schoolName=='Hec Paris','school'] = 'HEC Paris'
resumes.loc[resumes.schoolName=='Hec Paris','Nation'] = 'fr'

resumes.loc[resumes.schoolName=='Edhec Business School','school'] = 'EDHEC Business School'
resumes.loc[resumes.schoolName=='Edhec Business School','Nation'] = 'fr'

resumes.loc[resumes.schoolName=='University of Paris','school'] = 'Université de Paris'
resumes.loc[resumes.schoolName=='University of Paris','Nation'] = 'fr'

resumes.loc[resumes.schoolName=='Grenoble Ecole de Management','school'] = 'Grenoble École de Management'
resumes.loc[resumes.schoolName=='Grenoble Ecole de Management','Nation'] = 'fr'

resumes.loc[resumes.schoolName=='Compultense University of Madrid','school'] = 'Universidad Complutense de Madrid'
resumes.loc[resumes.schoolName=='Compultense University of Madrid','Nation'] = 'es'

resumes.loc[resumes.schoolName=='University of Barcelona','school'] = 'Universitat de Barcelona'
resumes.loc[resumes.schoolName=='University of Barcelona','Nation'] = 'es'

resumes.loc[resumes.schoolName=='Eae Business School','school'] = 'EAE Business School'
resumes.loc[resumes.schoolName=='Eae Business School','Nation'] = 'es'

resumes.loc[resumes.schoolName=='Autonomous University of Barcelona','school'] = 'Universitat Autònoma de Barcelona'
resumes.loc[resumes.schoolName=='Autonomous University of Barcelona','Nation'] = 'es'
resumes.loc[resumes.schoolName=='Universidad Autonoma De Barcelona','school'] = 'Universitat Autònoma de Barcelona'
resumes.loc[resumes.schoolName=='Universidad Autonoma De Barcelona','Nation'] = 'es'

resumes.loc[resumes.schoolName=='University of Salamanca','school'] = 'Universidad de Salamanca'
resumes.loc[resumes.schoolName=='University of Salamanca','Nation'] = 'es'

resumes.loc[resumes.schoolName=='University of Amsterdam','school'] = 'Universiteit van Amsterdam'
resumes.loc[resumes.schoolName=='University of Amsterdam','Nation'] = 'nl'
resumes.loc[resumes.schoolName=='University of Amsterdam / Universiteit Van Amsterdam','school'] = 'Universiteit van Amsterdam'
resumes.loc[resumes.schoolName=='University of Amsterdam / Universiteit Van Amsterdam','Nation'] = 'nl'

resumes.loc[resumes.schoolName=='Rotterdam School of Management, Erasmus University','school'] = 'Erasmus Universiteit Rotterdam'
resumes.loc[resumes.schoolName=='Rotterdam School of Management, Erasmus University','Nation'] = 'nl'

resumes.loc[resumes.schoolName=='Tu Delft','school'] = 'Delft University of Technology'
resumes.loc[resumes.schoolName=='Tu Delft','Nation'] = 'nl'

resumes.loc[resumes.schoolName=='Dublin Institute of Technology','school'] = 'Technological University Dublin'
resumes.loc[resumes.schoolName=='Dublin Institute of Technology','Nation'] = 'ie'
resumes.loc[resumes.schoolName=='Dublin Institute of Technology (Dit)','school'] = 'Technological University Dublin'
resumes.loc[resumes.schoolName=='Dublin Institute of Technology (Dit)','Nation'] = 'ie'

resumes.loc[resumes.schoolName=='Trinity College Dublin','school'] = 'Trinity College Dublin'
resumes.loc[resumes.schoolName=='Trinity College Dublin','Nation'] = 'ie'
resumes.loc[resumes.schoolName=='Trinity College, Dublin','school'] = 'Trinity College Dublin'
resumes.loc[resumes.schoolName=='Trinity College, Dublin','Nation'] = 'ie'

resumes.loc[resumes.schoolName=='Ucd Ireland','school'] = 'University College Dublin'
resumes.loc[resumes.schoolName=='Ucd Ireland','Nation'] = 'ie'

resumes.loc[resumes.schoolName=='Nui Galway','school'] = 'National University of Ireland Galway'
resumes.loc[resumes.schoolName=='Nui Galway','Nation'] = 'ie'

resumes.loc[resumes.schoolName=='University of Geneva','school'] = 'Université de Genève'
resumes.loc[resumes.schoolName=='University of Geneva','Nation'] = 'ch'

resumes.loc[resumes.schoolName=='Sapienza University of Rome','school'] = 'Sapienza – Università di Roma'
resumes.loc[resumes.schoolName=='Sapienza University of Rome','Nation'] = 'it'

resumes.loc[resumes.schoolName=='University of Vienna','school'] = 'Universität Wien'
resumes.loc[resumes.schoolName=='University of Vienna','Nation'] = 'at'

resumes.loc[resumes.schoolName=='Psg College of Technology','school'] = 'PSG College of Technology'
resumes.loc[resumes.schoolName=='Psg College of Technology','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Bits Pilani','school'] = 'Birla Institute of Technology and Science, Pilani'
resumes.loc[resumes.schoolName=='Bits Pilani','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Bits','school'] = 'Birla Institute of Technology and Science, Pilani'
resumes.loc[resumes.schoolName=='Bits','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Birla Institute of Technology And Science, Pilani','school'] = 'Birla Institute of Technology and Science, Pilani'
resumes.loc[resumes.schoolName=='Birla Institute of Technology And Science, Pilani','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Bits Pilani, Hyderabad Campus','school'] = 'Birla Institute of Technology and Science, Pilani'
resumes.loc[resumes.schoolName=='Bits Pilani, Hyderabad Campus','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Ben-Gurion University','school'] = 'Ben-Gurion University of the Negev'
resumes.loc[resumes.schoolName=='Ben-Gurion University','Nation'] = 'il'
resumes.loc[resumes.schoolName=='Ben Gurion University','school'] = 'Ben-Gurion University of the Negev'
resumes.loc[resumes.schoolName=='Ben Gurion University','Nation'] = 'il'
resumes.loc[resumes.schoolName=='Gurion University','school'] = 'Ben-Gurion University of the Negev'
resumes.loc[resumes.schoolName=='Gurion University','Nation'] = 'il'

resumes.loc[resumes.schoolName=='Punjab University','school'] = 'University of the Punjab'
resumes.loc[resumes.schoolName=='Punjab University','Nation'] = 'pk'

resumes.loc[resumes.schoolName=='Banasthali University','school'] = 'Banasthali Vidyapith'
resumes.loc[resumes.schoolName=='Banasthali University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Manipal University','school'] = 'Manipal Academy of Higher Education'
resumes.loc[resumes.schoolName=='Manipal University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Iit Kanpur','school'] = 'Indian Institute of Technology Kanpur'
resumes.loc[resumes.schoolName=='Iit Kanpur','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Hnb Garhwal University','school'] = 'Hemwati Nandan Bahuguna Garhwal University'
resumes.loc[resumes.schoolName=='Hnb Garhwal University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Srm University','school'] = 'SRM Institute of Science and Technology'
resumes.loc[resumes.schoolName=='Srm University','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Srm University, Kattankulathur, Chennai','school'] = 'SRM Institute of Science and Technology'
resumes.loc[resumes.schoolName=='Srm University, Kattankulathur, Chennai','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Pune University','school'] = 'Savitribai Phule Pune University'
resumes.loc[resumes.schoolName=='Pune University','Nation'] = 'in'
resumes.loc[resumes.schoolName=='University of Pune','school'] = 'Savitribai Phule Pune University'
resumes.loc[resumes.schoolName=='University of Pune','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Nagpur University','school'] = 'Rashtrasant Tukadoji Maharaj Nagpur University'
resumes.loc[resumes.schoolName=='Nagpur University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Mithibai College','school'] = 'Mithibai College of Arts Chauhan Institute Of Science And Amrutben Jivanlal College Of Commerce And Economics'
resumes.loc[resumes.schoolName=='Mithibai College','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Solapur University','school'] = 'Punyashlok Ahilyadevi Holkar Solapur University'
resumes.loc[resumes.schoolName=='Solapur University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Mg University','school'] = 'Mahatma Gandhi University'
resumes.loc[resumes.schoolName=='Mg University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='West Bengal University of Technology','school'] = 'Maulana Abul Kalam Azad University of Technology, West Bengal'
resumes.loc[resumes.schoolName=='West Bengal University of Technology','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Uttar Pradesh Technical University','school'] = 'Dr. A.P.J. Abdul Kalam Technical University'
resumes.loc[resumes.schoolName=='Uttar Pradesh Technical University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Pes Institute of Technology','school'] = 'PES University'
resumes.loc[resumes.schoolName=='Pes Institute of Technology','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Western University','school'] = 'Western University'
resumes.loc[resumes.schoolName=='Western University','Nation'] = 'ca'
resumes.loc[resumes.schoolName=='University of Western Ontario','school'] = 'Western University'
resumes.loc[resumes.schoolName=='University of Western Ontario','Nation'] = 'ca'
resumes.loc[resumes.schoolName=='The University of Western Ontario','school'] = 'Western University'
resumes.loc[resumes.schoolName=='The University of Western Ontario','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='University of Ontario Institute of Technology','school'] = 'Ontario Tech University'
resumes.loc[resumes.schoolName=='University of Ontario Institute of Technology','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='Uottawa','school'] = 'University of Ottawa'
resumes.loc[resumes.schoolName=='Uottawa','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='Curtin University of Technology','school'] = 'Curtin University'
resumes.loc[resumes.schoolName=='Curtin University of Technology','Nation'] = 'au'

resumes.loc[resumes.schoolName=='Lomonosov Moscow State University','school'] = 'Moscow State University'
resumes.loc[resumes.schoolName=='Lomonosov Moscow State University','Nation'] = 'ru'

resumes.loc[resumes.schoolName=='Rwth Aachen University','school'] = 'RWTH Aachen University'
resumes.loc[resumes.schoolName=='Rwth Aachen University','Nation'] = 'de'

resumes.loc[resumes.schoolName=='UniversitÃ  Bocconi','school'] = 'Bocconi University'
resumes.loc[resumes.schoolName=='UniversitÃ  Bocconi','Nation'] = 'it'
resumes.loc[resumes.schoolName=='Bocconi University','school'] = 'Bocconi University'
resumes.loc[resumes.schoolName=='Bocconi University','Nation'] = 'it'
resumes.loc[resumes.schoolName=='Sda Bocconi','school'] = 'Bocconi University'
resumes.loc[resumes.schoolName=='Sda Bocconi','Nation'] = 'it'
resumes.loc[resumes.schoolName=='Sda Bocconi School of Management','school'] = 'Bocconi University'
resumes.loc[resumes.schoolName=='Sda Bocconi School of Management','Nation'] = 'it'

resumes.loc[resumes.schoolName=='Ku Leuven','school'] = 'Katholieke Universiteit Leuven'
resumes.loc[resumes.schoolName=='Ku Leuven','Nation'] = 'be'

resumes.loc[resumes.schoolName=='Lund University','school'] = 'Lunds universitet'
resumes.loc[resumes.schoolName=='Lund University','Nation'] = 'se'

resumes.loc[resumes.schoolName=='University of Malaya','school'] = 'Universiti Malaya'
resumes.loc[resumes.schoolName=='University of Malaya','Nation'] = 'my'

resumes.loc[resumes.schoolName=='Tu München','school'] = 'Technische Universität München'
resumes.loc[resumes.schoolName=='Tu München','Nation'] = 'de'

##############################################################################
# MANUALLY ADD INTERNATIONAL UNIVERSITIES WITH PROMINENT COVERAGE BUT NOT MERGED - SAME NAME
##############################################################################

print("Add more international schools.")

for copySchool in ['London College of Communication',
                   'London College of Fashion',
                   'Dublin Business School',
                   'Budapest University of Technology and Economics',
                   'Corvinus University of Budapest',
                   'Indira Gandhi National Open University',
                   'Manipal Institute of Technology',
                   'Nanyang Polytechnic',
                   'Singapore Polytechnic',
                   'Ngee Ann Polytechnic',
                   'University of the Philippines',
                   'Temasek Polytechnic',
                   'Vellore Institute of Technology',
                   'Nanyang Technological University, Singapore',
                   'Camosun College',
                   'Kongu Engineering College',
                   'University of Buenos Aires',
                   'Bogazici University',
                   'Jagiellonian University',
                   'Dayananda Sagar College of Engineering',
                   'University of Warsaw',
                   'Southern Alberta Institute of Technology',
                   'Tilburg University',
                   'Utrecht University',
                   'Sciences Po',
                   'Hacettepe University',
                   'Marmara University',
                   'Yeditepe University',
                   'Bilkent University',
                   'Anadolu University',
                   'Tunku Abdul Rahman University College',
                   'Lambton College',
                   'University of Bologna',
                   'University of Glamorgan',
                   'University of Copenhagen',
                   'University of Pisa',
                   'University of Padua']:
        
    print("Adding " + copySchool)
    
    resumes.loc[resumes.schoolName==copySchool,'school'] = copySchool

resumes.loc[resumes.schoolName=='London College of Communication','Nation'] = 'gb'
resumes.loc[resumes.schoolName=='London College of Fashion','Nation'] = 'gb'
resumes.loc[resumes.schoolName=='University of Glamorgan','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='Dublin Business School','Nation'] = 'ie'

resumes.loc[resumes.schoolName=='Camosun College','Nation'] = 'ca'
resumes.loc[resumes.schoolName=='Lambton College','Nation'] = 'ca'
resumes.loc[resumes.schoolName=='Southern Alberta Institute of Technology','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='Nanyang Polytechnic','Nation'] = 'sg'
resumes.loc[resumes.schoolName=='Temasek Polytechnic','Nation'] = 'sg'
resumes.loc[resumes.schoolName=='Singapore Polytechnic','Nation'] = 'sg'
resumes.loc[resumes.schoolName=='Ngee Ann Polytechnic','Nation'] = 'sg'
resumes.loc[resumes.schoolName=='Nanyang Technological University, Singapore','Nation'] = 'sg'

resumes.loc[resumes.schoolName=='University of the Philippines','Nation'] = 'ph'

resumes.loc[resumes.schoolName=='Tilburg University','Nation'] = 'nl'
resumes.loc[resumes.schoolName=='Utrecht University','Nation'] = 'nl'

resumes.loc[resumes.schoolName=='Sciences Po','Nation'] = 'fr'

resumes.loc[resumes.schoolName=='University of Bologna','Nation'] = 'it'
resumes.loc[resumes.schoolName=='University of Padua','Nation'] = 'it'
resumes.loc[resumes.schoolName=='University of Pisa','Nation'] = 'it'

resumes.loc[resumes.schoolName=='Indira Gandhi National Open University','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Manipal Institute of Technology','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Vellore Institute of Technology','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Kongu Engineering College','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Dayananda Sagar College of Engineering','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Budapest University of Technology and Economics','Nation'] = 'hu'
resumes.loc[resumes.schoolName=='Corvinus University of Budapest','Nation'] = 'hu'

resumes.loc[resumes.schoolName=='University of Buenos Aires','Nation'] = 'ar'

resumes.loc[resumes.schoolName=='Bogazici University','Nation'] = 'tr'
resumes.loc[resumes.schoolName=='Marmara University','Nation'] = 'tr'
resumes.loc[resumes.schoolName=='Bilkent University','Nation'] = 'tr'
resumes.loc[resumes.schoolName=='Anadolu University','Nation'] = 'tr'
resumes.loc[resumes.schoolName=='Hacettepe University','Nation'] = 'tr'
resumes.loc[resumes.schoolName=='Yeditepe University','Nation'] = 'tr'

resumes.loc[resumes.schoolName=='Jagiellonian University','Nation'] = 'pl'
resumes.loc[resumes.schoolName=='University of Warsaw','Nation'] = 'pl'

resumes.loc[resumes.schoolName=='Tunku Abdul Rahman University College','Nation'] = 'my'

resumes.loc[resumes.schoolName=='University of Copenhagen','Nation'] = 'dk'

#-----------------------------
# ADD REMAINING INTERNATIONAL UNIVERSITIES STILL MISSING
#-----------------------------

resumes.loc[resumes.schoolName=='George Brown College','school'] = 'George Brown College'
resumes.loc[resumes.schoolName=='George Brown College','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='Langara College','school'] = 'Langara College'
resumes.loc[resumes.schoolName=='Langara College','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='Centennial College','school'] = 'Centennial College'
resumes.loc[resumes.schoolName=='Centennial College','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='Conestoga College','school'] = 'Conestoga College'
resumes.loc[resumes.schoolName=='Conestoga College','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='Mohawk College','school'] = 'Mohawk College'
resumes.loc[resumes.schoolName=='Mohawk College','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='Durham College','school'] = 'Durham College'
resumes.loc[resumes.schoolName=='Durham College','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='Douglas College','school'] = 'Douglas College'
resumes.loc[resumes.schoolName=='Douglas College','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='Vanier College','school'] = 'Vanier College'
resumes.loc[resumes.schoolName=='Vanier College','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='Dawson College','school'] = 'Dawson College'
resumes.loc[resumes.schoolName=='Dawson College','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='Niagara College','school'] = 'Niagara College'
resumes.loc[resumes.schoolName=='Niagara College','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='Red River College','school'] = 'Red River College'
resumes.loc[resumes.schoolName=='Red River College','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='Georgian College','school'] = 'Georgian College'
resumes.loc[resumes.schoolName=='Georgian College','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='St. Clair College','school'] = 'St. Clair College'
resumes.loc[resumes.schoolName=='St. Clair College','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='Seneca College','school'] = 'Seneca College'
resumes.loc[resumes.schoolName=='Seneca College','Nation'] = 'ca'
resumes.loc[resumes.schoolName=='Seneca','school'] = 'Seneca College'
resumes.loc[resumes.schoolName=='Seneca','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='Humber College','school'] = 'Humber College'
resumes.loc[resumes.schoolName=='Humber College','Nation'] = 'ca'
resumes.loc[resumes.schoolName=='Humber','school'] = 'Humber College'
resumes.loc[resumes.schoolName=='Humber','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='Athabasca University','school'] = 'Athabasca University'
resumes.loc[resumes.schoolName=='Athabasca University','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='Schulich School of Business','school'] = 'York University'
resumes.loc[resumes.schoolName=='Schulich School of Business','Nation'] = 'ca'
resumes.loc[resumes.schoolName=='Schulich School of Business, York University','school'] = 'York University'
resumes.loc[resumes.schoolName=='Schulich School of Business, York University','Nation'] = 'ca'
resumes.loc[resumes.schoolName=='York University - Schulich School of Business','school'] = 'York University'
resumes.loc[resumes.schoolName=='York University - Schulich School of Business','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='John Abbott College','school'] = 'John Abbott College'
resumes.loc[resumes.schoolName=='John Abbott College','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='John Molson School of Business','school'] = 'John Molson School of Business'
resumes.loc[resumes.schoolName=='John Molson School of Business','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='Algonquin College','school'] = 'Algonquin College of Applied Arts and Technology'
resumes.loc[resumes.schoolName=='Algonquin College','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='Fanshawe College','school'] = 'Fanshawe College of Applied Arts and Technology'
resumes.loc[resumes.schoolName=='Fanshawe College','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='Brunel University','school'] = 'Brunel University London'
resumes.loc[resumes.schoolName=='Brunel University','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='University of Glamorgan','school'] = 'University of Glamorgan'
resumes.loc[resumes.schoolName=='University of Glamorgan','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='Tallinn University','school'] = 'Tallinna Ülikool'
resumes.loc[resumes.schoolName=='Tallinn University','Nation'] = 'ee'

resumes.loc[resumes.schoolName=='Thapar University','school'] = 'Thapar Institute of Engineering and Technology'
resumes.loc[resumes.schoolName=='Thapar University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Rgpv','school'] = 'Rajiv Gandhi Proudyogiki Vishwavidyalaya'
resumes.loc[resumes.schoolName=='Rgpv','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Rgpv University','school'] = 'Rajiv Gandhi Proudyogiki Vishwavidyalaya'
resumes.loc[resumes.schoolName=='Rgpv University','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Rajiv Gandhi Technical University','school'] = 'Rajiv Gandhi Proudyogiki Vishwavidyalaya'
resumes.loc[resumes.schoolName=='Rajiv Gandhi Technical University','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Rgpv Bhopal','school'] = 'Rajiv Gandhi Proudyogiki Vishwavidyalaya'
resumes.loc[resumes.schoolName=='Rgpv Bhopal','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Rgpv University Bhopal','school'] = 'Rajiv Gandhi Proudyogiki Vishwavidyalaya'
resumes.loc[resumes.schoolName=='Rgpv University Bhopal','Nation'] = 'in'

resumes.loc[resumes.schoolName=='John Cabot University','school'] = 'John Cabot University'
resumes.loc[resumes.schoolName=='John Cabot University','Nation'] = 'it'

resumes.loc[resumes.schoolName=='Charles University','school'] = 'Charles University'
resumes.loc[resumes.schoolName=='Charles University','Nation'] = 'cz'

resumes.loc[resumes.schoolName=='Cambridge','school'] = 'University of Cambridge'
resumes.loc[resumes.schoolName=='Cambridge','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='Imperial College','school'] = 'Imperial College London'
resumes.loc[resumes.schoolName=='Imperial College','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='Binus University','school'] = 'BINUS University'
resumes.loc[resumes.schoolName=='Binus University','Nation'] = 'id'

resumes.loc[resumes.schoolName=='Warsaw School of Economics','school'] = 'SGH Warsaw School of Economics'
resumes.loc[resumes.schoolName=='Warsaw School of Economics','Nation'] = 'pl'
resumes.loc[resumes.schoolName=='Sgh Warsaw School of Economics','school'] = 'SGH Warsaw School of Economics'
resumes.loc[resumes.schoolName=='Sgh Warsaw School of Economics','Nation'] = 'pl'

resumes.loc[resumes.schoolName=='Iit Kharagpur','school'] = 'Indian Institute of Technology Kharagpur'
resumes.loc[resumes.schoolName=='Iit Kharagpur','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Indian Institute of Technology, Kharagpur','school'] = 'Indian Institute of Technology Kharagpur'
resumes.loc[resumes.schoolName=='Indian Institute of Technology, Kharagpur','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Iit Kanpur','school'] = 'Indian Institute of Technology Kanpur'
resumes.loc[resumes.schoolName=='Iit Kanpur','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Iit Bombay','school'] = 'Indian Institute of Technology Bombay'
resumes.loc[resumes.schoolName=='Iit Bombay','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Iit Delhi','school'] = 'Indian Institute of Technology Delhi'
resumes.loc[resumes.schoolName=='Iit Delhi','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Iit Guwahati','school'] = 'Indian Institute of Technology Guwahati'
resumes.loc[resumes.schoolName=='Iit Guwahati','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Iit Madras','school'] = 'Indian Institute of Technology Madras'
resumes.loc[resumes.schoolName=='Iit Madras','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Indian Institute of Technology, Madras','school'] = 'Indian Institute of Technology Madras'
resumes.loc[resumes.schoolName=='Indian Institute of Technology, Madras','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Iit Roorkee','school'] = 'Indian Institute of Technology Roorkee'
resumes.loc[resumes.schoolName=='Iit Roorkee','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Indian Institute of Technology, Roorkee','school'] = 'Indian Institute of Technology Roorkee'
resumes.loc[resumes.schoolName=='Indian Institute of Technology, Roorkee','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Jntu','school'] = 'Jawaharlal Nehru Technological University Hyderabad'
resumes.loc[resumes.schoolName=='Jntu','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Jnt University','school'] = 'Jawaharlal Nehru Technological University Hyderabad'
resumes.loc[resumes.schoolName=='Jnt University','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Jntu University','school'] = 'Jawaharlal Nehru Technological University Hyderabad'
resumes.loc[resumes.schoolName=='Jntu University','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Jntu Hyderabad','school'] = 'Jawaharlal Nehru Technological University Hyderabad'
resumes.loc[resumes.schoolName=='Jntu Hyderabad','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Jntuh','school'] = 'Jawaharlal Nehru Technological University Hyderabad'
resumes.loc[resumes.schoolName=='Jntuh','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Jntuh University','school'] = 'Jawaharlal Nehru Technological University Hyderabad'
resumes.loc[resumes.schoolName=='Jntuh University','Nation'] = 'in'
resumes.loc[resumes.schoolName=='J.N.T.U','school'] = 'Jawaharlal Nehru Technological University Hyderabad'
resumes.loc[resumes.schoolName=='J.N.T.U','Nation'] = 'in'
resumes.loc[resumes.schoolName=='J.N.T. University','school'] = 'Jawaharlal Nehru Technological University Hyderabad'
resumes.loc[resumes.schoolName=='J.N.T. University','Nation'] = 'in'
resumes.loc[resumes.schoolName=='J.N.T University','school'] = 'Jawaharlal Nehru Technological University Hyderabad'
resumes.loc[resumes.schoolName=='J.N.T University','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Jawaharlal Nehru Technological University, Hyderabad','school'] = 'Jawaharlal Nehru Technological University Hyderabad'
resumes.loc[resumes.schoolName=='Jawaharlal Nehru Technological University, Hyderabad','Nation'] = 'in'
resumes.loc[resumes.schoolName=='J.N.T.University','school'] = 'Jawaharlal Nehru Technological University Hyderabad'
resumes.loc[resumes.schoolName=='J.N.T.University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Jntu Anantapur','school'] = 'Jawaharlal Nehru Technological University, Anantapur'
resumes.loc[resumes.schoolName=='Jntu Anantapur','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Jntua University','school'] = 'Jawaharlal Nehru Technological University, Anantapur'
resumes.loc[resumes.schoolName=='Jntua University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Jntu Kakinada','school'] = 'Jawaharlal Nehru Technological University, Kakinada'
resumes.loc[resumes.schoolName=='Jntu Kakinada','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Jntu Kakinada University','school'] = 'Jawaharlal Nehru Technological University, Kakinada'
resumes.loc[resumes.schoolName=='Jntu Kakinada University','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Jntuk','school'] = 'Jawaharlal Nehru Technological University, Kakinada'
resumes.loc[resumes.schoolName=='Jntuk','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Jntuk University','school'] = 'Jawaharlal Nehru Technological University, Kakinada'
resumes.loc[resumes.schoolName=='Jntuk University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Jiwaji University, Gwalior','school'] = 'Jiwaji University'
resumes.loc[resumes.schoolName=='Jiwaji University, Gwalior','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Jiwaji University Gwalior','school'] = 'Jiwaji University'
resumes.loc[resumes.schoolName=='Jiwaji University Gwalior','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Ignou','school'] = 'Indira Gandhi National Open University'
resumes.loc[resumes.schoolName=='Ignou','Nation'] = 'in'
resumes.loc[resumes.schoolName=='I.G.N.O.U','school'] = 'Indira Gandhi National Open University'
resumes.loc[resumes.schoolName=='I.G.N.O.U','Nation'] = 'in'
resumes.loc[resumes.schoolName=='I.G.N.O.U.','school'] = 'Indira Gandhi National Open University'
resumes.loc[resumes.schoolName=='I.G.N.O.U.','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Vtu','school'] = 'Visvesvaraya Technological University'
resumes.loc[resumes.schoolName=='Vtu','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Vtu University','school'] = 'Visvesvaraya Technological University'
resumes.loc[resumes.schoolName=='Vtu University','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Vtu Belgaum','school'] = 'Visvesvaraya Technological University'
resumes.loc[resumes.schoolName=='Vtu Belgaum','Nation'] = 'in'

resumes.loc[resumes.schoolName=='North Maharashtra University','school'] = 'Kavayitri Bahinabai Chaudhari North Maharashtra University Jalgaon'
resumes.loc[resumes.schoolName=='North Maharashtra University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Gitam University','school'] = 'Gandhi Institute of Technology and Management'
resumes.loc[resumes.schoolName=='Gitam University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Unsw','school'] = 'The University of New South Wales'
resumes.loc[resumes.schoolName=='Unsw','Nation'] = 'au'
resumes.loc[resumes.schoolName=='University of Nsw','school'] = 'The University of New South Wales'
resumes.loc[resumes.schoolName=='University of Nsw','Nation'] = 'au'

resumes.loc[resumes.schoolName=='Nagarjuna University','school'] = 'Acharya Nagarjuna University'
resumes.loc[resumes.schoolName=='Nagarjuna University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Symbiosis University','school'] = 'Symbiosis International University'
resumes.loc[resumes.schoolName=='Symbiosis University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Mapua Institute of Technology','school'] = 'Mapúa University'
resumes.loc[resumes.schoolName=='Mapua Institute of Technology','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Anna University Chennai','school'] = 'Anna University'
resumes.loc[resumes.schoolName=='Anna University Chennai','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Cass Business School','school'] = 'City, University of London'
resumes.loc[resumes.schoolName=='Cass Business School','Nation'] = 'gb'
resumes.loc[resumes.schoolName=='Cass Business School, City University','school'] = 'City, University of London'
resumes.loc[resumes.schoolName=='Cass Business School, City University','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='Bradford College','school'] = 'Bradford College'
resumes.loc[resumes.schoolName=='Bradford College','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='Fgv','school'] = 'Fundação Getúlio Vargas'
resumes.loc[resumes.schoolName=='Fgv','Nation'] = 'br'
resumes.loc[resumes.schoolName=='Fundação Getulio Vargas / Fgv','school'] = 'Fundação Getúlio Vargas'
resumes.loc[resumes.schoolName=='Fundação Getulio Vargas / Fgv','Nation'] = 'br'

resumes.loc[resumes.schoolName=='Tel Aviv University | אוניברסיטת תל-אביב','school'] = 'Tel Aviv University'
resumes.loc[resumes.schoolName=='Tel Aviv University | אוניברסיטת תל-אביב','Nation'] = 'il'

resumes.loc[resumes.schoolName=='Chitkara University','school'] = 'Chitkara University, Punjab'
resumes.loc[resumes.schoolName=='Chitkara University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Bangalore Institute of Technology','school'] = 'Bangalore Institute of Technology'
resumes.loc[resumes.schoolName=='Bangalore Institute of Technology','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Vishwakarma Institute of Technology','school'] = 'Vishwakarma Institute of Technology'
resumes.loc[resumes.schoolName=='Vishwakarma Institute of Technology','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Coimbatore Institute of Technology','school'] = 'Coimbatore Institute of Technology'
resumes.loc[resumes.schoolName=='Coimbatore Institute of Technology','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Instituto Superior Técnico','school'] = 'Instituto Superior Técnico'
resumes.loc[resumes.schoolName=='Instituto Superior Técnico','Nation'] = 'pt'

resumes.loc[resumes.schoolName=='Boğaziçi University','school'] = 'Bogazici University'
resumes.loc[resumes.schoolName=='Boğaziçi University','Nation'] = 'tr'

resumes.loc[resumes.schoolName=='Yildiz Technical University','school'] = 'Yildiz Technical University'
resumes.loc[resumes.schoolName=='Yildiz Technical University','Nation'] = 'tr'

resumes.loc[resumes.schoolName=='Royal Melbourne Institute of Technology','school'] = 'RMIT University'
resumes.loc[resumes.schoolName=='Royal Melbourne Institute of Technology','Nation'] = 'au'

resumes.loc[resumes.schoolName=='University of Newcastle, Australia','school'] = 'University of Newcastle, Australia'
resumes.loc[resumes.schoolName=='University of Newcastle, Australia','Nation'] = 'au'

resumes.loc[resumes.schoolName=='University of Economics, Prague','school'] = 'Prague University of Economics and Business'
resumes.loc[resumes.schoolName=='University of Economics, Prague','Nation'] = 'cz'
resumes.loc[resumes.schoolName=='University of Economics In Prague','school'] = 'Prague University of Economics and Business'
resumes.loc[resumes.schoolName=='University of Economics In Prague','Nation'] = 'cz'
resumes.loc[resumes.schoolName=='Vysoká Škola Ekonomická V Praze /Vše/','school'] = 'Prague University of Economics and Business'
resumes.loc[resumes.schoolName=='Vysoká Škola Ekonomická V Praze /Vše/','Nation'] = 'cz'

resumes.loc[resumes.schoolName=='Unisa - The University of South Africa','school'] = 'University of South Africa'
resumes.loc[resumes.schoolName=='Unisa - The University of South Africa','Nation'] = 'za'
resumes.loc[resumes.schoolName=='Unisa (University of South Africa)','school'] = 'University of South Africa'
resumes.loc[resumes.schoolName=='Unisa (University of South Africa)','Nation'] = 'za'

resumes.loc[resumes.schoolName=='Vu University Amsterdam','school'] = 'Vrije Universiteit Amsterdam'
resumes.loc[resumes.schoolName=='Vu University Amsterdam','Nation'] = 'nl'
resumes.loc[resumes.schoolName=='Vrije Universiteit','school'] = 'Vrije Universiteit Amsterdam'
resumes.loc[resumes.schoolName=='Vrije Universiteit','Nation'] = 'nl'

resumes.loc[resumes.schoolName=='University of Rome','school'] = 'Sapienza Università di Roma'
resumes.loc[resumes.schoolName=='University of Rome','Nation'] = 'it'

resumes.loc[resumes.schoolName=='Leeds Metropolitan U.','school'] = 'Leeds Metropolitan University'
resumes.loc[resumes.schoolName=='Leeds Metropolitan U.','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='Birmingham Uk','school'] = 'University of Birmingham'
resumes.loc[resumes.schoolName=='Birmingham Uk','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='Barnsley College','school'] = 'Barnsley College'
resumes.loc[resumes.schoolName=='Barnsley College','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='Solihull College','school'] = 'Solihull College'
resumes.loc[resumes.schoolName=='Solihull College','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='Universität Mannheim - University of Mannheim','school'] = 'Universität Mannheim'
resumes.loc[resumes.schoolName=='Universität Mannheim - University of Mannheim','Nation'] = 'de'

resumes.loc[resumes.schoolName=='University of Makati','school'] = 'University of Makati'
resumes.loc[resumes.schoolName=='University of Makati','Nation'] = 'ph'

resumes.loc[resumes.schoolName=='National University of Ireland, Maynooth','school'] = 'National University of Ireland Maynooth'
resumes.loc[resumes.schoolName=='National University of Ireland, Maynooth','Nation'] = 'ie'

#-----------------------------
# ADD REMAINING US UNIVERSITIES STILL MISSING
#-----------------------------

print("Add us schools.")

resumes.loc[resumes.schoolName=='Georgetown University, Mcdonough School of Business','school'] = 'Georgetown University'
resumes.loc[resumes.schoolName=='Georgetown University, Mcdonough School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Georgetown University, Georgetown College','school'] = 'Georgetown University'
resumes.loc[resumes.schoolName=='Georgetown University, Georgetown College','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Emory University, Goizueta Business School','school'] = 'Emory University'
resumes.loc[resumes.schoolName=='Emory University, Goizueta Business School','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Goizueta Business School, Emory University','school'] = 'Emory University'
resumes.loc[resumes.schoolName=='Goizueta Business School, Emory University','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Northwestern','school'] = 'Northwestern University'
resumes.loc[resumes.schoolName=='University of Northwestern','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Northwestern University, Medill School of Journalism','school'] = 'Northwestern University'
resumes.loc[resumes.schoolName=='Northwestern University, Medill School of Journalism','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Haas School of Business','school'] = 'University of California-Berkeley'
resumes.loc[resumes.schoolName=='Haas School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Haas School of Business - Uc Berkeley','school'] = 'University of California-Berkeley'
resumes.loc[resumes.schoolName=='Haas School of Business - Uc Berkeley','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of California, Berkeley - Haas School of Business','school'] = 'University of California-Berkeley'
resumes.loc[resumes.schoolName=='University of California, Berkeley - Haas School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Walter A. Haas School of Business','school'] = 'University of California-Berkeley'
resumes.loc[resumes.schoolName=='Walter A. Haas School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Teachers College of Columbia University','school'] = 'Columbia University in the City of New York'
resumes.loc[resumes.schoolName=='Teachers College of Columbia University','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Columbia Business School','school'] = 'Columbia University in the City of New York'
resumes.loc[resumes.schoolName=='Columbia Business School','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Columbia University, Fu Foundation School of Engineering And Applied Science','school'] = 'Columbia University in the City of New York'
resumes.loc[resumes.schoolName=='Columbia University, Fu Foundation School of Engineering And Applied Science','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Columbia University, The Fu Foundation School of Engineering And Applied Science','school'] = 'Columbia University in the City of New York'
resumes.loc[resumes.schoolName=='Columbia University, The Fu Foundation School of Engineering And Applied Science','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Columbia University School of Law','school'] = 'Columbia University in the City of New York'
resumes.loc[resumes.schoolName=='Columbia University School of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Barnard College, Columbia University','school'] = 'Barnard College'
resumes.loc[resumes.schoolName=='Barnard College, Columbia University','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Marshall School of Business','school'] = 'University of Southern California'
resumes.loc[resumes.schoolName=='Marshall School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Usc Marshall School of Business','school'] = 'University of Southern California'
resumes.loc[resumes.schoolName=='Usc Marshall School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='The London School of Economics','school'] = 'The London School of Economics and Political Science'
resumes.loc[resumes.schoolName=='The London School of Economics','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='The Hague University','school'] = 'De Haagse Hogeschool'
resumes.loc[resumes.schoolName=='The Hague University','Nation'] = 'nl'
resumes.loc[resumes.schoolName=='The Hague University of Applied Science','school'] = 'De Haagse Hogeschool'
resumes.loc[resumes.schoolName=='The Hague University of Applied Science','Nation'] = 'nl'
resumes.loc[resumes.schoolName=='The Hague University of Applied Sciences','school'] = 'De Haagse Hogeschool'
resumes.loc[resumes.schoolName=='The Hague University of Applied Sciences','Nation'] = 'nl'

resumes.loc[resumes.schoolName=='The George Washington University Law School','school'] = 'George Washington University'
resumes.loc[resumes.schoolName=='The George Washington University Law School','Nation'] = 'us'
resumes.loc[resumes.schoolName=='The George Washington University, Elliott School of International Affairs','school'] = 'George Washington University'
resumes.loc[resumes.schoolName=='The George Washington University, Elliott School of International Affairs','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Mccombs School of Business','school'] = 'The University of Texas at Austin'
resumes.loc[resumes.schoolName=='Mccombs School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='The University of Texas At Austin, Mccombs School of Business','school'] = 'The University of Texas at Austin'
resumes.loc[resumes.schoolName=='The University of Texas At Austin, Mccombs School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='The University of Texas At Austin - Red Mccombs School of Business','school'] = 'The University of Texas at Austin'
resumes.loc[resumes.schoolName=='The University of Texas At Austin - Red Mccombs School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Texas at Austin','school'] = 'The University of Texas at Austin'
resumes.loc[resumes.schoolName=='University of Texas at Austin','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Texas At Austin, Mccombs School of Business','school'] = 'The University of Texas at Austin'
resumes.loc[resumes.schoolName=='University of Texas At Austin, Mccombs School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Brigham Young University–Idaho','school'] = 'Brigham Young University-Idaho'
resumes.loc[resumes.schoolName=='Brigham Young University–Idaho','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Dartmouth','school'] = 'Dartmouth College'
resumes.loc[resumes.schoolName=='Dartmouth','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Yale School of Management','school'] = 'Yale University'
resumes.loc[resumes.schoolName=='Yale School of Management','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Kelley School of Business','school'] = 'Indiana University Bloomington'
resumes.loc[resumes.schoolName=='Kelley School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Indiana University - Kelley School of Business','school'] = 'Indiana University Bloomington'
resumes.loc[resumes.schoolName=='Indiana University - Kelley School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Indiana University School of Law','school'] = 'Indiana University Bloomington'
resumes.loc[resumes.schoolName=='Indiana University School of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Kellogg School of Management','school'] = 'Northwestern University'
resumes.loc[resumes.schoolName=='Kellogg School of Management','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Kellogg School of Management, Northwestern University','school'] = 'Northwestern University'
resumes.loc[resumes.schoolName=='Kellogg School of Management, Northwestern University','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Northwestern University - Kellogg School of Management','school'] = 'Northwestern University'
resumes.loc[resumes.schoolName=='Northwestern University - Kellogg School of Management','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Georgetown University Law Center','school'] = 'Georgetown University'
resumes.loc[resumes.schoolName=='Georgetown University Law Center','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Georgetown Law','school'] = 'Georgetown University'
resumes.loc[resumes.schoolName=='Georgetown Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Minnesota School of Business','school'] = 'University of Minnesota-Twin Cities'
resumes.loc[resumes.schoolName=='Minnesota School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Carlson School of Management','school'] = 'University of Minnesota-Twin Cities'
resumes.loc[resumes.schoolName=='Carlson School of Management','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Minnesota','school'] = 'University of Minnesota-Twin Cities'
resumes.loc[resumes.schoolName=='Minnesota','Nation'] = 'us'

resumes.loc[resumes.schoolName=='New York University Stern School of Business','school'] = 'New York University'
resumes.loc[resumes.schoolName=='New York University Stern School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Nyu Tandon School of Engineering','school'] = 'New York University'
resumes.loc[resumes.schoolName=='Nyu Tandon School of Engineering','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Polytechnic Institute of New York University','school'] = 'New York University'
resumes.loc[resumes.schoolName=='Polytechnic Institute of New York University','Nation'] = 'us'
resumes.loc[resumes.schoolName=='New York University, Tandon School of Engineering','school'] = 'New York University'
resumes.loc[resumes.schoolName=='New York University, Tandon School of Engineering','Nation'] = 'us'
resumes.loc[resumes.schoolName=='New York University School of Law','school'] = 'New York University'
resumes.loc[resumes.schoolName=='New York University School of Law','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Nyu Stern','school'] = 'New York University'
resumes.loc[resumes.schoolName=='Nyu Stern','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Miami School of Law','school'] = 'University of Miami'
resumes.loc[resumes.schoolName=='University of Miami School of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Fordham University School of Law','school'] = 'Fordham University'
resumes.loc[resumes.schoolName=='Fordham University School of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Texas At El Paso (Utep)','school'] = 'University of Texas at El Paso'
resumes.loc[resumes.schoolName=='University of Texas At El Paso (Utep)','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of South Florida (Usf)','school'] = 'University of South Florida-St Petersburg'
resumes.loc[resumes.schoolName=='University of South Florida (Usf)','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Stellenbosch Business School','school'] = 'Universiteit Stellenbosch'
resumes.loc[resumes.schoolName=='University of Stellenbosch Business School','Nation'] = 'za'

resumes.loc[resumes.schoolName=='University of Rouen','school'] = 'Université de Rouen'
resumes.loc[resumes.schoolName=='University of Rouen','Nation'] = 'fr'
resumes.loc[resumes.schoolName=='Université De Rouen','school'] = 'Université de Rouen'
resumes.loc[resumes.schoolName=='Université De Rouen','Nation'] = 'fr'

resumes.loc[resumes.schoolName=='University of Szczecin','school'] = 'Uniwersytet Szczecinski'
resumes.loc[resumes.schoolName=='University of Szczecin','Nation'] = 'pl'
resumes.loc[resumes.schoolName=='Uniwersytet Szczeciński','school'] = 'Uniwersytet Szczecinski'
resumes.loc[resumes.schoolName=='Uniwersytet Szczeciński','Nation'] = 'pl'

resumes.loc[resumes.schoolName=='University of Silesia','school'] = 'University of Silesia in Katowice'
resumes.loc[resumes.schoolName=='University of Silesia','Nation'] = 'pl'

resumes.loc[resumes.schoolName=='Wharton School, University of Pennsylvania','school'] = 'University of Pennsylvania'
resumes.loc[resumes.schoolName=='Wharton School, University of Pennsylvania','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Wharton School of The University of Pennsylvania','school'] = 'University of Pennsylvania'
resumes.loc[resumes.schoolName=='Wharton School of The University of Pennsylvania','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Pennsylvania, The Wharton School','school'] = 'University of Pennsylvania'
resumes.loc[resumes.schoolName=='University of Pennsylvania, The Wharton School','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Pennsylvania, Wharton School of Business','school'] = 'University of Pennsylvania'
resumes.loc[resumes.schoolName=='University of Pennsylvania, Wharton School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Wharton Business School','school'] = 'University of Pennsylvania'
resumes.loc[resumes.schoolName=='Wharton Business School','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Wharton School of Business, University of Pennsylvania','school'] = 'University of Pennsylvania'
resumes.loc[resumes.schoolName=='Wharton School of Business, University of Pennsylvania','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Wharton University of Pennsylvania','school'] = 'University of Pennsylvania'
resumes.loc[resumes.schoolName=='Wharton University of Pennsylvania','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Pennsylvania, School of Engineering And Applied Science','school'] = 'University of Pennsylvania'
resumes.loc[resumes.schoolName=='University of Pennsylvania, School of Engineering And Applied Science','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Duke University, The Fuqua School of Business','school'] = 'Duke University'
resumes.loc[resumes.schoolName=='Duke University, The Fuqua School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Duke University Fuqua School of Business','school'] = 'Duke University'
resumes.loc[resumes.schoolName=='Duke University Fuqua School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Johnson & Wales University','school'] = 'Johnson & Wales University'
resumes.loc[resumes.schoolName=='Johnson & Wales University','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Johnson and Wales University','school'] = 'Johnson & Wales University'
resumes.loc[resumes.schoolName=='Johnson and Wales University','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Johnson And Wales University','school'] = 'Johnson & Wales University'
resumes.loc[resumes.schoolName=='Johnson And Wales University','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Princeton','school'] = 'Princeton University'
resumes.loc[resumes.schoolName=='Princeton','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Flagler College','school'] = 'Flagler College'
resumes.loc[resumes.schoolName=='Flagler College','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Northwestern Polytechnic University','school'] = 'Northwestern Polytechnic University'
resumes.loc[resumes.schoolName=='Northwestern Polytechnic University','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Stephen M. Ross School of Business','school'] = 'University of Michigan'
resumes.loc[resumes.schoolName=='Stephen M. Ross School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Michigan, Stephen M. Ross School of Business','school'] = 'University of Michigan'
resumes.loc[resumes.schoolName=='University of Michigan, Stephen M. Ross School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='State University of New York At New Paltz','school'] = 'State University of New York at New Paltz'
resumes.loc[resumes.schoolName=='State University of New York At New Paltz','Nation'] = 'us'
resumes.loc[resumes.schoolName=='State University of New York At Brockport','school'] = 'SUNY College at Brockport'
resumes.loc[resumes.schoolName=='State University of New York At Brockport','Nation'] = 'us'
resumes.loc[resumes.schoolName=='State University of New York At Potsdam','school'] = 'SUNY College at Potsdam'
resumes.loc[resumes.schoolName=='State University of New York At Potsdam','Nation'] = 'us'
resumes.loc[resumes.schoolName=='State University of New York At Albany','school'] = 'SUNY at Albany'
resumes.loc[resumes.schoolName=='State University of New York At Albany','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Suny Brockport','school'] = 'SUNY College at Brockport'
resumes.loc[resumes.schoolName=='Suny Brockport','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Suny College At Plattsburgh','school'] = 'SUNY College at Plattsburgh'
resumes.loc[resumes.schoolName=='Suny College At Plattsburgh','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Suny College At Oswego','school'] = 'SUNY College at Oswego'
resumes.loc[resumes.schoolName=='Suny College At Oswego','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Suny College At Geneseo','school'] = 'SUNY College at Geneseo'
resumes.loc[resumes.schoolName=='Suny College At Geneseo','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Suny Old Westbury','school'] = 'SUNY College at Old Westbury'
resumes.loc[resumes.schoolName=='Suny Old Westbury','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Suny Fredonia','school'] = 'SUNY at Fredonia'
resumes.loc[resumes.schoolName=='Suny Fredonia','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Suny Purchase College','school'] = 'SUNY at Purchase College'
resumes.loc[resumes.schoolName=='Suny Purchase College','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Indiana University–Purdue University Fort Wayne','school'] = 'Indiana University-Purdue University-Fort Wayne'
resumes.loc[resumes.schoolName=='Indiana University–Purdue University Fort Wayne','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Indiana University–Purdue University Fort Wayne (Ipfw)','school'] = 'Indiana University-Purdue University-Fort Wayne'
resumes.loc[resumes.schoolName=='Indiana University–Purdue University Fort Wayne (Ipfw)','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Indiana University - Purdue University Fort Wayne','school'] = 'Indiana University-Purdue University-Fort Wayne'
resumes.loc[resumes.schoolName=='Indiana University - Purdue University Fort Wayne','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Dcu','school'] = 'University of District of Columbia'
resumes.loc[resumes.schoolName=='Dcu','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Southern Arkansas University','school'] = 'Southern Arkansas University'
resumes.loc[resumes.schoolName=='Southern Arkansas University','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Umsl','school'] = 'University of Missouri-St Louis'
resumes.loc[resumes.schoolName=='Umsl','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Brigham Young University, Marriott School of Management','school'] = 'Brigham Young University-Provo'
resumes.loc[resumes.schoolName=='Brigham Young University, Marriott School of Management','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Cuny Brooklyn','school'] = 'CUNY Brooklyn College'
resumes.loc[resumes.schoolName=='Cuny Brooklyn','Nation'] = 'us'
resumes.loc[resumes.schoolName=='City University of New York-Brooklyn College','school'] = 'CUNY Brooklyn College'
resumes.loc[resumes.schoolName=='City University of New York-Brooklyn College','Nation'] = 'us'
resumes.loc[resumes.schoolName=='City University of New York, Brooklyn College','school'] = 'CUNY Brooklyn College'
resumes.loc[resumes.schoolName=='City University of New York, Brooklyn College','Nation'] = 'us'
resumes.loc[resumes.schoolName=='City University of New York - Brooklyn College','school'] = 'CUNY Brooklyn College'
resumes.loc[resumes.schoolName=='City University of New York - Brooklyn College','Nation'] = 'us'

resumes.loc[resumes.schoolName=='City University of New York, Hunter College','school'] = 'CUNY Hunter College'
resumes.loc[resumes.schoolName=='City University of New York, Hunter College','Nation'] = 'us'
resumes.loc[resumes.schoolName=='City University of New York-Hunter College','school'] = 'CUNY Hunter College'
resumes.loc[resumes.schoolName=='City University of New York-Hunter College','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Hunter College School of Social Work','school'] = 'CUNY Hunter College'
resumes.loc[resumes.schoolName=='Hunter College School of Social Work','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Hunter College, The City University of New York','school'] = 'CUNY Hunter College'
resumes.loc[resumes.schoolName=='Hunter College, The City University of New York','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Silberman School of Social Work At Hunter College','school'] = 'CUNY Hunter College'
resumes.loc[resumes.schoolName=='Silberman School of Social Work At Hunter College','Nation'] = 'us'

resumes.loc[resumes.schoolName=='City University of New York, Queens College','school'] = 'CUNY Queens College'
resumes.loc[resumes.schoolName=='City University of New York, Queens College','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Cuny John Jay.','school'] = 'CUNY John Jay College of Criminal Justice'
resumes.loc[resumes.schoolName=='Cuny John Jay.','Nation'] = 'us'
resumes.loc[resumes.schoolName=='John Jay College of Criminal Justice of The City University of New York','school'] = 'CUNY John Jay College of Criminal Justice'
resumes.loc[resumes.schoolName=='John Jay College of Criminal Justice of The City University of New York','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Boston University College of Communication','school'] = 'Boston University'
resumes.loc[resumes.schoolName=='Boston University College of Communication','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Boston University College of Engineering','school'] = 'Boston University'
resumes.loc[resumes.schoolName=='Boston University College of Engineering','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Boston University School of Law','school'] = 'Boston University'
resumes.loc[resumes.schoolName=='Boston University School of Law','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Boston University School of Management','school'] = 'Boston University'
resumes.loc[resumes.schoolName=='Boston University School of Management','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Boston University School of Medicine','school'] = 'Boston University'
resumes.loc[resumes.schoolName=='Boston University School of Medicine','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Tcu – Texas Christian University','school'] = 'Texas Christian University'
resumes.loc[resumes.schoolName=='Tcu – Texas Christian University','Nation'] = 'us'

#-----------------------------
# Combine schools that should be together but slightly different matches
#-----------------------------

print("Rename schools.")

resumes.loc[resumes.school=='Yildiz Teknik Üniversitesi','school'] = 'Yildiz Technical University'

resumes.loc[resumes.school=='Western Michigan University Homer Stryker M.D. School of Medicine','school'] = 'Western Michigan University'
resumes.loc[resumes.school=='Western Michigan University-Thomas M. Cooley Law School','school'] = 'Western Michigan University'

resumes.loc[resumes.school=='University of Wisconsin–Madison','school'] = 'University of Wisconsin-Madison'

resumes.loc[resumes.school=='University of Washington - Seattle','school'] = 'University of Washington-Seattle Campus'

resumes.loc[resumes.school=='University of Virginia','school'] = 'University of Virginia-Main Campus'

resumes.loc[resumes.school=='Indiana University – Purdue University Indianapolis','school'] = 'Indiana University-Purdue University-Indianapolis'

resumes.loc[resumes.school=='IIstanbul Teknik Üniversitesi','school'] = 'Istanbul Technical University'

resumes.loc[resumes.school=='Karlsruher Institut für Technologie','school'] = 'Karlsruhe Institute of Technology'

resumes.loc[resumes.school=='Karolinska Institutet','school'] = 'Karolinska Institute'

resumes.loc[resumes.school=='Linköpings Universitet','school'] = 'Linköping University'

resumes.loc[resumes.school=='Linnéuniversitetet','school'] = 'Linnaeus University'

resumes.loc[resumes.school=='Sorbonne Université','school'] = 'Sorbonne University'

resumes.loc[resumes.school=='Southern Illinois University Carbondale','school'] = 'Southern Illinois University-Carbondale'

resumes.loc[resumes.school=='Technische Universität Berlin','school'] = 'Technical University of Berlin'
resumes.loc[resumes.school=='Technische Universität München','school'] = 'Technical University of Munich'

resumes.loc[resumes.school=='University of Michigan','school'] = 'University of Michigan-Ann Arbor'
resumes.loc[resumes.school=='University of Michigan, Ann Arbor','school'] = 'University of Michigan-Ann Arbor'

resumes.loc[resumes.school=='University of Minnesota - Twin Cities','school'] = 'University of Minnesota-Twin Cities'

resumes.loc[resumes.school=='University of Maryland, College Park','school'] = 'University of Maryland-College Park'

resumes.loc[resumes.school=='University of Illinois at Urbana–Champaign','school'] = 'University of Illinois at Urbana-Champaign'

resumes.loc[resumes.school=='University of California, Los Angeles','school'] = 'University of California-Los Angeles'
resumes.loc[resumes.school=='University of California, San Francisco','school'] = 'University of California-San Francisco'

resumes.loc[resumes.school=='Örebro Universitet','school'] = 'Örebro University'

resumes.loc[resumes.school=='Çukurova Üniversitesi','school'] = 'Çukurova University'

resumes.loc[resumes.school=='Åbo Akademi','school'] = 'Åbo Akademi University'

resumes.loc[resumes.school=='Anadolu Üniversitesi','school'] = 'Anadolu University'

resumes.loc[resumes.school=='Beni-Suef University','school'] = 'Beni Suef University'

resumes.loc[resumes.school=='California State University, Los Angeles','school'] = 'California State University-Los Angeles'
resumes.loc[resumes.school=='California State University, Sacramento','school'] = 'California State University-Sacramento'
resumes.loc[resumes.school=='California State University, Fresno','school'] = 'California State University-Fresno'

resumes.loc[resumes.school=='College of William & Mary','school'] = 'College of William and Mary'

resumes.loc[resumes.school=='College of Saint Benedict','school'] = "College of Saint Benedict and Saint John's University"

resumes.loc[resumes.school=='Ege Üniversitesi','school'] = 'Ege University'

resumes.loc[resumes.school=='Embry-Riddle Aeronautical University','school'] = 'Embry-Riddle Aeronautical University-Daytona Beach'

resumes.loc[resumes.school=='Friedrich-Schiller-Universität Jena','school'] = 'Friedrich Schiller University Jena'

resumes.loc[resumes.school=='Gazi Üniversitesi','school'] = 'Gazi University'

resumes.loc[resumes.school=='Hacettepe Üniversitesi','school'] = 'Hacettepe University'

resumes.loc[resumes.school=='Indiana University Bloomington','school'] = 'Indiana University-Bloomington'

resumes.loc[resumes.school=='Leibniz Universität Hannover','school'] = 'Leibniz University Hannover'

resumes.loc[resumes.school=='Leuphana Universität Lüneburg','school'] = 'Leuphana University of Lüneburg'

resumes.loc[resumes.school=='Louisiana State University','school'] = 'Louisiana State University and Agricultural & Mechanical College'

resumes.loc[resumes.school=='Lunds Universitet','school'] = 'Lunds universitet'

resumes.loc[resumes.school=='Marmara Üniversitesi','school'] = 'Marmara University'

resumes.loc[resumes.school=='Mersin Üniversitesi','school'] = 'Mersin University'

resumes.loc[resumes.school=='Oklahoma State University','school'] = 'Oklahoma State University-Main Campus'

resumes.loc[resumes.school=='Pamukkale Üniversitesi','school'] = 'Pamukkale University'

resumes.loc[resumes.school=='Roger Williams University School of Law','school'] = 'Roger Williams University'

resumes.loc[resumes.school=='Roskilde Universitet','school'] = 'Roskilde University'

resumes.loc[resumes.school=='Ruhr-Universität Bochum','school'] = 'Ruhr University Bochum'

resumes.loc[resumes.school=='Rutgers University-Newark','school'] = 'Rutgers University–Newark'

resumes.loc[resumes.school=='Sabanc? University','school'] = 'Sabanci Üniversitesi'

resumes.loc[resumes.school=='Sapienza – Università di Roma','school'] = 'Sapienza Università di Roma'

resumes.loc[resumes.school=='Seminole State College of Florida','school'] = 'Seminole State College'

resumes.loc[resumes.school=='Semmelweis Egyetem','school'] = 'Semmelweis University'

resumes.loc[resumes.school=='Selçuk Üniversitesi','school'] = 'Selçuk University'

resumes.loc[resumes.school=='Tallinna Tehnikakõrgkool','school'] = 'Tallinna Tehnikaülikool'

resumes.loc[resumes.school=='Texas A&M University, College Station','school'] = 'Texas A & M University-College Station'

resumes.loc[resumes.school=='Thomas More College of Liberal Arts','school'] = 'Thomas More College'

resumes.loc[resumes.school=='Trinity College Dublin, University of Dublin','school'] = 'Trinity College Dublin'

resumes.loc[resumes.school=='Universidad Simón Bolivar','school'] = 'Universidad Simón Bolívar'

resumes.loc[resumes.school=='Universitat Autònoma de Barcelona','school'] = 'Universidad Autónoma de Barcelona'

resumes.loc[resumes.school=='University of Agriculture, Faisalabad','school'] = 'University of Agriculture Faisalabad'

resumes.loc[resumes.school=='University of Arkansas - Fayetteville','school'] = 'University of Arkansas'

resumes.loc[resumes.school=='University of Missouri-St. Louis','school'] = 'University of Missouri-St Louis'
resumes.loc[resumes.school=='University of Missouri–Columbia','school'] = 'University of Missouri-Columbia'

resumes.loc[resumes.school=='Università degli Studi di Padova','school'] = 'University of Padova'
resumes.loc[resumes.school=='Università degli Studi di Torino','school'] = 'University of Turin'

resumes.loc[resumes.school=='Universität Augsburg','school'] = 'University of Augsburg'

resumes.loc[resumes.school=='Wageningen Universiteit','school'] = 'Wageningen University & Research'

resumes.loc[resumes.school=='Wittenborg University of Applied Sciences','school'] = 'Wittenberg University'

resumes.loc[resumes.school=='Yeditepe Üniversitesi','school'] = 'Yeditepe University'

resumes.loc[resumes.school=='Vilniaus Universitetas','school'] = 'Vilnius University'

resumes.loc[resumes.school=='Wageningen Universiteit','school'] = 'Wageningen University & Research'

resumes.loc[resumes.school=='Erciyes Üniversitesi','school'] = 'Erciyes University'

resumes.loc[resumes.school=='California Polytechnic State University, San Luis Obispo','school'] = 'California Polytechnic State University-San Luis Obispo'

resumes.loc[resumes.school=='Bogaziçi Üniversitesi','school'] = 'Bogazici University'

resumes.loc[resumes.school=='Bilkent Üniversitesi','school'] = 'Bilkent University'

resumes.loc[resumes.school=='Beni-Suef University','school'] = 'Beni Suef University'

resumes.loc[resumes.school=='Jawaharlal Nehru Technological University Hyderabad','school'] = 'Jawaharlal Nehru Technological University'

resumes.loc[resumes.school=='Birla Institute of Technology and Science, Pilani','school'] = 'Birla Institute of Technology and Science'
resumes.loc[resumes.school=='Birla Institute of Technology','school'] = 'Birla Institute of Technology and Science'

resumes.loc[resumes.school=='Autonomous University of Madrid','school'] = 'Universidad Autónoma de Madrid'

resumes.loc[resumes.school=='Aix-Marseille Université','school'] = 'Aix-Marseille University'

resumes.loc[resumes.school=='Akdeniz Üniversitesi','school'] = 'Akdeniz University'

resumes.loc[resumes.school=='Polytechnic University of Madrid','school'] = 'Universidad Politécnica de Madrid'

resumes.loc[resumes.school=='National University of Ireland, Galway','school'] = 'National University of Ireland Galway'

#-----------------------------
# List popular names that are still unmatched
#-----------------------------

stillMissing = pd.DataFrame(resumes[resumes.school.isnull()].groupby('schoolName').size()).reset_index()
stillMissing = stillMissing[stillMissing[0]>=400]
stillMissing.sort_values(0,inplace=True)
stillMissing.to_csv(savePath + "Unassigned_schools.csv")

notMissing = pd.DataFrame(resumes[resumes.school.notnull()].groupby('school').size()).reset_index()
notMissing.sort_values(0,inplace=True)

#-----------------------------
# Do one final sweep matching unmatched to already matched
#-----------------------------

print("Merge still unmatched with already matched.")

schoolsPresent = notMissing[['school']]
unmatchedSchools = stillMissing[['schoolName']]

schoolInfo = resumes.groupby('school').head(1)[['school','Nation']]

newMatches = unmatchedSchools['schoolName'].apply(lambda x: process.extractOne(x,schoolsPresent.school,scorer=fuzz.token_sort_ratio))
newMatches = newMatches.reset_index()
nextName = [newMatches.schoolName[x][0] for x in range(0,len(newMatches))]
nextScore = [int(newMatches.schoolName[x][1]) for x in range(0,len(newMatches))]

nextResults = pd.DataFrame(np.stack((unmatchedSchools.schoolName,nextName,nextScore))).T
nextResults.rename(columns={0:'unmatched'},inplace=True)
nextResults.rename(columns={1:'match'},inplace=True)
nextResults.rename(columns={2:'score'},inplace=True)
backupResultsAlready = nextResults.copy()        

# Keep matches
nextResults['keepMatch'] = 0
nextResults.loc[nextResults.score==100,'keepMatch'] = 1
nextResults.loc[nextResults.score==99,'keepMatch'] = 1

nextResults.loc[nextResults.unmatched=='University of Sao Paulo','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Saint Joseph College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Consumnes River College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Istanbul Universitesi','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Medical Careers Institute','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Southwestern Baptist Theological Seminary','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Artcenter College of Design','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=="Saint Joseph'S College",'keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='De Paul University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Lemoyne College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Massachusetts At Amherst','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Arab Academy For Science, Technology & Maritime Transport','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Sir Syed University of Engineering & Technology','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Politechnika Wrocławska','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of North Carolina Greensboro','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universitatea Babeş - Bolyai','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Koc University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Louisiana State University In Shreveport','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Virginia Polytechnic Institute & State University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of Tennessee At Martin','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of California, Hastings College of The Law','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of North Carolina Charlotte','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Louisiana State University At Shreveport','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Pittsburgh At Johnstown','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=="Texas Women'S University",'keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Applied Science','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Eth Zürich','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Missouri University of Science & Technology','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Cochin University of Science & Technology','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Mount St. Joseph University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The Art Institute of Fort Lauderdale Inc','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Auburn University-Montgomery','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Saint Charles Community College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Latvijas Universitāte','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Uniwersytet Wrocławski','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='St. Phillips College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Tribhuwan University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of North Carolina At Charlotte','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Spartan College of Aeronautics And Technology','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of Alabama In Huntsville','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='San Francisco City College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Florida Agricultural & Mechanical University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Cnm Central New Mexico Community College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Louisiana Monroe','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Concordia University, St. Paul','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Tarumanagara University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Ual: University of The Arts London','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Guilford Technical Community College | Gtcc','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Australian Catholic University (Acu)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Illinois Institute of Technology (Iit)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Rochester Institute of Technology (Rit)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Strathclyde University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Central Florida (Ucf)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Virginia Commonwealth University (Vcu)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Tennessee - Martin','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Columbus College of Art & Design','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='North Bengal University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Southern University A&M College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Northern Colorado, Unc','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The College of St. Rose','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='St Cloud State University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Boaziçi University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Mount Hood Community College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Uaa: University of Alaska Anchorage','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Rensselaer Polytechnic Institute (Rpi)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Florida International University (Fiu)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Savannah College of Art & Design','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Trinity International University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Canterbury University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of Texas At El Paso (Utep)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Gunadarma University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Liverpool University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Savannah College of Art And Design (Scad)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Diponegoro University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Washington And Jefferson College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Gujarat Technical University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Heidelberg','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=="St. Michael'S College",'keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='American College of Greece','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Portsmouth University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Wctc - Waukesha County Technical College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Indira Gandhi National Open University (Ignou)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Padjadjaran University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Art Institute of Washington','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='New England Institute of Art','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Art Institute of Colorado','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='New York Institute of Technology (Nyit)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='St. Francis University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of South Alabama','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='New Jersey Institute of Technology (Njit)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Community College of Rhode Island (Ccri)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=="St. Peter'S University",'keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Yıldız Technical University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='College of Westchester','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Bristol University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='California State University East Bay (Csueb)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='St. Josephs College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of Birmingham','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Mjp Rohilkhand University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='St. Vincent College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Warsaw University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=="St Mary'S College",'keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Buckingham','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='St. Anselm College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=="St Joseph'S College",'keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='John Marshall Law School','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The Los Angeles Film School','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of Scranton','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Art Institute of Seattle','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Art Institute of Houston','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Telkom University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Irsc - Indian River State College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of Nairobi','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='St. Paul College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Bernard M. Baruch College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='St. Edwards University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of Houston','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='College of Saint Rose','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The Citadel, The Military College of South Carolina','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Emory And Henry College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='St. Michaels College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Ecole Polytechnique Fédérale De Lausanne (Epfl)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Babes-Bolyai University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Lewis And Clark College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Purdue University North Central','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='College of Wooster','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Simón Bolívar University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Manipal Institute of Technology, Manipal','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Puerto Rico, Mayagüez Campus','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Narsee Monjee Institute of Management Studies','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Birkbeck College, University of London','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of The Assumption','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Bernard Baruch College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Babeş-Bolyai University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Mississippi ~ Ole Miss','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Sir M. Visvesvaraya Institute of Technology','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Cuny Baruch College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Université De Lausanne','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Université De Lorraine','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Sacramento City College (Official)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Università Di Napoli "Federico Ii"','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universidad De Valladolid','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Wageningen University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universitat De València','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Southern University And A&M College - Baton Rouge, La','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Rome La Sapienza','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Worcester Polytechnic','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Suny Empire State','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of San Diego School of Law','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Walter State Community College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Saurastra University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=="University of Hawai'I At Manoa",'keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universidad Politecnica De Madrid','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=="Hawai'I Pacific University",'keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Uttrakhand Technical University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universidad Catolica Andres Bello','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Instituto Politecnico Nacional','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Lemoyne-Owen College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Western Governor University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Cukurova University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Muhammad Ali Jinnah University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universidad Nacional Autonoma De Mexico','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Prince George Community College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Fullsail University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='St Johns College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Malaga','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Latrobe University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Menofia University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Goldenwest College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Indiana University-Purdue University At Indianapolis','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='California State University of San Bernardino','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='St. Philips College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Miami International University of Art And Design','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='California State University At Fullerton','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Louisiana Lafayette','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='California State University At Northridge','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Columbia University, Teachers College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Massachusetts At Boston','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The Cooper Union For The Advancement of Science And Art','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Babasaheb Ambedkar Marathwada University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Southern New Hampshire','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Kwame Nkrumah University of Science & Technology','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Jaypee University of Engineering & Technology','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University Malaysia Sarawak','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Jomo Kenyatta University of Agriculture & Technology','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universidad Rafael Belloso Chacín','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University Malaysia Perlis','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University Tenaga Nasional','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Ahsanullah University of Science & Technology','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Alabama Birmingham','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Southern Illinois University At Edwardsville','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Southern Baptist Theological Seminary','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universität Heidelberg','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Sudan University of Science & Technology','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Technical University Munich','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of California At Irvine','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Philadelphia Community College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Athens University of Economics & Business','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='St Louis Community College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='College of Management Academic Studies','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='King Fahd University of Petroleum & Minerals','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=="Università Ca' Foscari Venezia",'keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Minneapolis Community & Technical College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Illinois Chicago','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of Alabama At Birmingham','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The School of The Art Institute of Chicago','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Sacred Heart','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Pt. Ravishankar Shukla University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='State University of Management','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='College of St. Elizabeth','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Hertfordshire University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Jai Narayan Vyas University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University College of Dublin','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of West of England','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University College of London','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Lewis & Clark Community College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Management & Science University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The Fashion Institute of Technology','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Assuit University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universitat Politècnica De València','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of Central Florida','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Saint Bonaventure University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of Illinois At Chicago','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Auckland University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Aberdeen University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Purchase College, Suny','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universidad De Buenos Aires (Uba)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Art Institute of Portland','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Belgrade University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universidad De San Andrés','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Peshawar University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Bucharest University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Richmond University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Rajshahi','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Incarnate Word','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The George Washington University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='London University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Los Angeles Trade Tech College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The College of Staten Island','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Sussex University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Tripoli University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of Liverpool','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Jordan University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Evergreen State College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Unesp - Universidade Estadual Paulista','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of Zambia','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Suny Upstate Medical University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Illinois At Champaign','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The School of Visual Arts','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of Dallas','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Dr. Apj Abdul Kalam Technical University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Glasgow School of Art','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Copperbelt University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Northern Va Community College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of Chicago','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Istanbul Aydin University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Borough Manhattan Community College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Cal State University Fullerton','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Colorado State University Global','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Suny Stony Brook University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=="Université D'Angers",'keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University At Buffalo, Suny','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=="Université D'Orléans",'keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Suny University At Buffalo','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Université De Rennes 1','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Kadir Has University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universidade Nove De Julho (Uninove)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of The Sacred Heart','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Santa Barbara City College - S.B.C.C.','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of The South','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Fgv - Fundacao Getulio Vargas','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Simon Bolivar University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='London College of Fashion - Official','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Oakland Community College (Official)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Polytechnique Montréal','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Pennsylvania Law School','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Benemérita Universidad Autónoma De Puebla','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Suny Buffalo State College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Santa Barbara City','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Case Western Reserve University School of Law','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universidad De Cantabria','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universidad De Antioquia','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='United States Military Academy At West Point','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Wayne State University Law School','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Academia De Studii Economice','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Palm Beach Atlantic University - West Palm Beach','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='New York Institute of Technology - Manhattan Campus','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Marquette University Law School','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Amirkabir University of Technology (Tehran Polytechnic)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Suny At Buffalo','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Loyola University Chicago School of Law','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='San Francisco State','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='U.S. Naval Academy','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Santa Clara University School of Law','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of The Sciences In Philadelphia','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Pepperdine University School of Law','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Seton Hall University School of Law','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Villanova University School of Law','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Nottingham Trent','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='John Molson School of Business, Concordia University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Cal State Dominguez Hills','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of Tennessee, Knoxville, Haslam College of Business','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Duquesne University School of Law','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of California, Berkeley, Haas School of Business','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Boston College Law School','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Colorado Boulder - Leeds School of Business','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='George Mason','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Rajasthan (Rajasthan University)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Newcastle Uk','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Cal State San Marcos','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Colorado At Boulder - Leeds School of Business','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Uni. Sussex','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Borough of Manhattan Community College of The City University of New York','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Loyola University Chicago, Quinlan School of Business','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Uw-Platteville','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Uantwerpen','keepMatch'] = 1

# 2022 additions
nextResults.loc[nextResults.unmatched=='Universidad Autonoma De Madrid','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Politecnico Grancolombiano','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Oxford Brooks University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Tecnologico De Monterrey','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Université Paul Sabatier','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Bharathidhasan University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=="Governor'S State University",'keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Em Lyon Business School','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Mahathma Gandhi University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Université Mcgill','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Pontificia Universidad Catolica Del Peru','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Selcuk University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Uludağ University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Antonine University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Florida State College Jacksonville','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='California State University of San Marcos','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University Teknologi Mara','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Hec Montreal','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Kyiv National Taras Shevchenko University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Southern Illinois University of Edwardsville','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University Sains Malaysia','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Jefferson Community & Technical College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Università Degli Studi Di Roma Tre','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='National University of Sciences & Technology','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Jordan University of Science & Technology','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=="Queen'S University of Belfast",'keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='London School of Hygiene And Tropical Medicine','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Jawaharlal Nehru Technical University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Srm Institute of Science & Technology','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='National & Kapodistrian University of Athens','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Yaoundé','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Kwame Nkrumah University of Science And Technology (Knust)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='American College of Thessaloniki','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Ho Chi Minh University of Technology','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Pelita Harapan University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Uff - Universidade Federal Fluminense','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Balqa Applied University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Buenos Aires University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Chittagong University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Visvesvaraya National Institute of Technology Nagpur','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Khartoum University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Moore College of Art & Design','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Wrocław University of Science And Technology','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Paderborn','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Nyenrode Business University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Stirling University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Airlangga University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Gls University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Arts London','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Yaounde','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Isfahan University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Havana University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of Greenwich','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Tampere','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Denver University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='London School of Economics & Political Science','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Dr. Bhim Rao Ambedkar University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of Toronto','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Ecole Polytechnique Fédérale De Lausanne','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Ufscar - Universidade Federal De São Carlos','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Cal State University Long Beach','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University Malaysia','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Islamia University Bahawalpur','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Miller Motte College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='College of Idaho','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Igbinedion University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Singidunum University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universidade São Judas','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Estácio De Sá University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of California, Berkeley Extension','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The Maharaja Sayajirao University','keepMatch'] = 1

nextResults = nextResults[nextResults.keepMatch==1]
del nextResults['keepMatch']

# Merge unmatched matches with fuzzymatch
addSchools = pd.merge(nextResults, schoolInfo, how='left', left_on = ['match'], right_on = ['school'])
addSchools = addSchools[['unmatched','school','Nation']]
addSchools.rename(columns={'unmatched':'schoolName'},inplace=True)
addSchools.rename(columns={'school':'cleanSchool'},inplace=True)
addSchools.rename(columns={'Nation':'cleanNation'},inplace=True)

# Add to main dataset
resumes = pd.merge(resumes, addSchools, how='left', left_on = ['schoolName'], right_on = ['schoolName'])

# Combine cleaned university and school variables and denote U.S. institutions
resumes.loc[resumes.school.isnull() & resumes.cleanNation.notnull(),'Nation'] = resumes[resumes.school.isnull() & resumes.cleanNation.notnull()]['cleanNation']
resumes.loc[resumes.school.isnull() & resumes.cleanSchool.notnull(),'school'] = resumes[resumes.school.isnull() & resumes.cleanSchool.notnull()]['cleanSchool']
del resumes['cleanSchool']
del resumes['cleanNation']

#-----------------------------
# List popular names that are still unmatched
#-----------------------------

stillMissing = pd.DataFrame(resumes[resumes.school.isnull()].groupby('schoolName').size()).reset_index()
stillMissing = stillMissing[stillMissing[0]>=250]
stillMissing.sort_values(0,inplace=True)
stillMissing.to_csv(savePath + "Unassigned_schools.csv")

notMissing = pd.DataFrame(resumes[resumes.school.notnull()].groupby('school').size()).reset_index()
notMissing.sort_values(0,inplace=True)

#-----------------------------
# Do one more final sweep matching unmatched to already matched
#-----------------------------

print("Merge still unmatched with already matched (again).")

schoolsPresent = notMissing[['school']]
unmatchedSchools = stillMissing[['schoolName']]

schoolInfo = resumes.groupby('school').head(1)[['school','Nation']]

newMatches = unmatchedSchools['schoolName'].apply(lambda x: process.extractOne(x,schoolsPresent.school,scorer=fuzz.token_sort_ratio))
newMatches = newMatches.reset_index()
nextName = [newMatches.schoolName[x][0] for x in range(0,len(newMatches))]
nextScore = [int(newMatches.schoolName[x][1]) for x in range(0,len(newMatches))]

nextResults = pd.DataFrame(np.stack((unmatchedSchools.schoolName,nextName,nextScore))).T
nextResults.rename(columns={0:'unmatched'},inplace=True)
nextResults.rename(columns={1:'match'},inplace=True)
nextResults.rename(columns={2:'score'},inplace=True)
backupResultsAlreadyAlready = nextResults.copy()    
    
# Keep matches
nextResults['keepMatch'] = 0
nextResults.loc[nextResults.score==100,'keepMatch'] = 1
nextResults.loc[nextResults.score==99,'keepMatch'] = 1
nextResults.loc[nextResults.score==98,'keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Indian Institute of Technology','keepMatch'] = 0
nextResults.loc[nextResults.score==97,'keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Port','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Bradford University','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Bamu University','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Mara University of Technology','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Ama University','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Guildford College','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Sim University','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Southwest Missouri State University','keepMatch'] = 0
nextResults.loc[nextResults.score==96,'keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Barker College','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Moorhead State University','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Pre University College','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Pre-University College','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='National Defense University','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Chico State University','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Feu Institute of Technology','keepMatch'] = 0
nextResults.loc[nextResults.score==95,'keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Santo','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Heald Institute of Technology','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Southeastern College','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='California Southern University','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Purvanchal University','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Esade Business School','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Cmr Institute of Technology','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='University of Engineering And Technology','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Mapúa Institute of Technology','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='University of Science And Technology','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Teri University','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Isra University','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Rock University','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Stamford University','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Ecornell University','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='University of Port','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Universidad Esan','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='University of Arts','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Soa University','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Itm University','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Nmims University','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Poona College','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Elon College','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Clarke College','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Universidad De El Salvador','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Sae Institute of Technology','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Board/College','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='College Board','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='National Defense University','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Isra University','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Isra University','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Isra University','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Isra University','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Isra University','keepMatch'] = 0
nextResults.loc[nextResults.unmatched=='Isra University','keepMatch'] = 0

nextResults.loc[nextResults.unmatched=='International Islamic University Malaysia (Iium)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='City University, London','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Dayananda Sagar College of Engineering (Dsce)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='State University of Management','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Assuit University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of Illinois At Chicago','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='National Institute of Technology Warangal (Nitw)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='American University of Sharjah (Aus)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Sacred Heart','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Southern Alberta Institute of Technology (Sait)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Vellore Institute of Technology (Vit)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of St. Joseph','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Columbia College of Chicago','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Art Institute of New York City','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University College of London','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University For The Creative Arts - Uca','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Birla Institute of Technology And Science (Bits)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Illinois At Urbana-Champaign (Uiuc)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University Malaya','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The Fashion Institute of Technology','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Maryland Baltimore County (Umbc)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Tallahassee Community College Tcc','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of Central Florida','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Danmarks Tekniske Universitet - Dtu','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='College of St. Elizabeth','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Lewis & Clark Community College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Huddersfield University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Manchester Metropolitan University (Mmu)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Puerto Rico At Bayamón','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Singapore Institute of Technology (Sit)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Sardar Vallabhbhai National Institute of Technology','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of The East (Ue)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The American University In Cairo (Auc)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Southampton University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Southern Illinois University Edwardsville (Siue)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Issa (International Sports Sciences Association)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Northern Alberta Institute of Technology (Nait)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Saint Bonaventure University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Wolverhampton University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of California Los Angeles (Ucla)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Kwame Nkrumah University of Science And Technology (Knust)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Art Institute of Fort Lauderdale','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='American Public University System (Apus)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Peshawar University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Auckland University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Ignou, Indira Gandhi National Open University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Yaounde','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Carnegie Mellon University (Cmu)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of San Francisco (Usf)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Purchase College, Suny','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Moore College of Art & Design','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Bucharest University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Middle East Technical University (Metu)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Lakeland University - Wi','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Nova Southeastern University (Nsu)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Paderborn','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Birmingham University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Aberdeen University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='St Johns University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Richmond University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Brawijaya University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Rajshahi','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of San Francisco','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Brighton University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of Huddersfield','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Lancaster','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Art Institute of Portland','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='National Taiwan University (Ntu)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The George Washington University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Milwaukee School of Engineering (Msoe)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Sunderland University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Leicester University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Incarnate Word','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Visvesvaraya National Institute of Technology Nagpur','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Savitribai Phule University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universitatea Bucuresti','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Haagse Hogeschool','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Denver University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Tampere','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Sussex University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Exeter University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of Liverpool','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Jordan University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Glasgow University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=="St.Joseph'S College",'keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Los Angeles Trade Tech College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The Robert Gordon University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Maharshi Dayanand University (Mdu)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Tripoli University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universitat Autonoma De Barcelona','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Kalyani University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Lovely Professional Univversity ( Lpu )','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Charles Sturt University - Csu','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Usp - Universidade De São Paulo','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Université Paris Ii - Panthéon-Assas','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Multimedia University (Mmu)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Puerto Rico, Mayaguez Campus','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Université Paris Viii Vincennes - Saint-Denis','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Art Institute of Ft. Lauderdale','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The College of New Jersey (Tcnj)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Suny Rockland Community College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Fgv - Fundação Getúlio Vargas','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Copperbelt University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of San Carlos - Cebu','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Illinois At Champaign','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of Dallas','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Suny Upstate Medical University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Rhode Island College (Ric)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of Jordan','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Glasgow School of Art','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Elte - Eötvös Loránd Tudományegyetem','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Derby University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='College of Santa Fe','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Northern Va Community College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Rey Juan Carlos University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Dr. B.R. Ambedkar University, Agra','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universität St. Gallen (Hsg)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Broome Community College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universidad Iberoamericana (Unibe)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Washington, Seattle','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of Leeds','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Cal State University, Northridge','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Borough Manhattan Community College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Cal State University Fullerton','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Vietnam National University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Purdue University - North Central','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Babes Bolyai University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Cal State University Northridge','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Polytechnic University of The Philippines (Official)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Suny Stony Brook University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universidad Politécnica De Madrid (Oficial)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=="Université D'Angers",'keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Suny University At Buffalo','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Paris Iii: Sorbonne Nouvelle','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universidade Paulista - Unip','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universidad De Puerto Rico - Rio Piedras Campus','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='College of Idaho','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Hong Kong Baptist University 香港浸會大學','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Goldsmiths College, University of London','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Anhembi Morumbi University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universitatea Alexandru Ioan Cuza','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Université De Poitiers','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Université De Bordeaux','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Texas Austin','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Kwazulu','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Inter American University of Puerto Rico Metropolitan Campus','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of The Sacred Heart','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of The South','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Santa Barbara City College - S.B.C.C.','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Parahyangan Catholic University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University College Dublin, Ireland','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Indiana University of Pennsylvania (Iup)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Paris-Sorbonne University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Université De Montpellier','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Simon Bolivar University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Middlesex University London','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=="Università Ca' Foscari Venezia",'keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Baruch College/Cuny','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Fgv - Fundacao Getulio Vargas','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Virginia Polytechnic Institute & State University (Virginia Tech)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Lagos (Unilag)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universidad Industrial De Santander','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='George Washington University Law School','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='London Southbank University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Kingston University London','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Orange County Community College - Suny Orange','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The College of Staten Island','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Embry–Riddle Aeronautical University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Indira Gandhi National Open University (Ignou), New Delhi','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Pennsylvania Law School','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Lyceum of The Philippines','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universidade Federal De Pernambuco','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Case Western Reserve University School of Law','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universidad De Cantabria','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universiteit Van Tilburg','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Alexandru Ioan Cuza University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universidad De Zaragoza','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Palm Beach Atlantic University - West Palm Beach','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Victoria University, Australia','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Connecticut School of Law','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Marquette University Law School','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Uni. Teesside','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Uni Bayreuth','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Uni. Derby','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Uni. Essex','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Uni. Glamorgan','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Uni. Gloucestershire','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Uni. Huddersfield','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Uni. Sunderland','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Uni. Sussex','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Uni. Teesside','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Uni. Wolverhampton','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Politecnico Grancolombiano','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universidad Autonoma De Nuevo Leon','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universidad De Antioquia','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Illinois     Urbana','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Rajasthan (Rajasthan University)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Upr Rio Piedras','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Vanderbilt University Law School','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Wake Forest University School of Law','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The George Washington University School of Business','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The George Washington University - School of Business','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Suny At Stony Brook','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Suny At Buffalo','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Seton Hall University School of Law','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Quinnipiac University School of Law','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Johns Hopkins University Carey Business School','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Centro Escolar University (Official)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Cal State Northridge','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Cal State San Marcos','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Boston College Law School','keepMatch'] = 1

# 2022 additions
nextResults.loc[nextResults.unmatched=="St.Edward'S University",'keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Maine At Orono','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Ahliyya Amman University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Ufmg - Universidade Federal De Minas Gerais','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Texas Womans University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Uva - Universidade Veiga De Almeida','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Université Nice Sophia Antipolis','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universidad Tecnológica Nacional (Utn)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Staffordshire','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Université Nice-Sophia Antipolis','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Aurora Community College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Santa Clara','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of The Incarnate Word','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Interior Design Institute','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='American University of Afghanistan','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Saint Catherine University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=="Balqa' Applied University",'keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Oregon Health And Science University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of West of Scotland','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Ringling College of Art & Design','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universidade De Santo Amaro','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Saint Thomas Aquinas College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Visvesvaraya Technical University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Management And Science University (Msu)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universitat Autónoma De Barcelona','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universidad Rafael Belloso Chacin','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universidade Federal Fluminense - Uff','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The Technical University of Kenya','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universidade Federal Fluminense (Uff)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Université Paris 5 - Descartes','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Najah National University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=="St. Martin'S University",'keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Uam - Universidade Anhembi Morumbi','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Obafemi Awolowo University Ile','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Ponce Paramedical College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Mt. Kenya University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Washington & Lee University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Visvesvaraya Technology University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Université De Reims Champagne-Ardenne','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='California Polytechnic University Pomona','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Mazandaran University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of New Orleans','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Yaounde 1','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Sherbrooke University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Copenhagen University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Eotvos Lorand University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Mount St. Mary College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Otis College of Art & Design','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Union Institute And University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of West Alabama','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Mercu Buana University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Fashion Institute of Technology, Suny','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Art Institute of Las Vegas','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of Westminster','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Indian Institute of Technology (Indian School of Mines)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Islamic University of Gaza','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Art Institute of Charlotte','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Middlesex','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Michigan State University (Msu)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='La Universidad Del Zulia','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Université De La Rochelle','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Coventry','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The Nottingham Trent University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Gothenburg University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of Notre Dame','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Ufba - Universidade Federal Da Bahia','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='San Francisco State University (Sfsu)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Banaras Hindu University (Bhu)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Free State','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Cardiff','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Dimitrie Cantemir University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Dundee University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='College of St. Mary','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Leipzig','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Udayana University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Surrey University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Aveiro University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Yangon','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Bologna University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Surrey University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Texas State Technical College - Waco','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of Notre Dame','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Udayana University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Ufba - Universidade Federal Da Bahia','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Cardiff','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Central','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Free State','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Leipzig','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Utrecht','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Yangon','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Cal State University Dominguez Hills','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Cal State University San Bernardino','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='College of New Jersey','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Davis And Elkins College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Dr Apj Abdul Kalam Technical University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Essex University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Hong Kong University of Science & Technology','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Indian Law Institute','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Instituto Tecnológico Autónomo De México (Itam)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Mip Politecnico Di Milano','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='North Carolina A&T University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Rafael Urdaneta University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Saint Olaf College','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='San Diego State University (Sdsu)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Sergio Arboleda University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Sindh University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Southern University of New Orleans','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The College of Charleston','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The National University of Malaysia','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of Calgary','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of Dayton','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of Mumbai','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='The University of Reading','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Titu Maiorescu University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universitat De Valencia','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Aegean','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Alabama In Birmingham','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Dodoma','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Keele','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Université Du Québec À Montréal (Uqam)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Université Lille 3','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Cal State University Los Angeles','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Ricardo Palma University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Unicid - Universidade Cidade De São Paulo','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universidade Cidade De São Paulo - Unicid','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universidade Federal Do Abc - Ufabc','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universitas Bina Nusantara (Binus)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universitat Politecnica De Catalunya','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Kuala Lumpur','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Texas Health Science San Antonio','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Texas of Permian Basin','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Washington Seattle','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Université Cheikh Anta Diop De Dakar','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Université De Picardie Jules Verne','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Bahauddin Zakariya University Multan','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Cal State University East Bay','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Suny Binghamton University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Unesa - Universidade Estácio De Sá','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Unicamp - Universidade Estadual De Campinas','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Unifesp - Universidade Federal De São Paulo','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universidade Estadual De Campinas (Unicamp)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universidade Estadual De Campinas - Unicamp','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universitat Politècnica De València Upv','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=="Université D'Ottawa",'keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Ahmadu Bello University Zaria','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Andres Bello Catholic University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Rohilkhand University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Salahaddin University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Stockholm School of Economics In Riga','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Unicsul - Universidade Cruzeiro Do Sul','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Eastern Africa','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Selangor','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Texas Dallas','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Texas In Arlington','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of West England','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Birla Institute of Technology & Science, Pilani','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='German University In Cairo (Guc)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Indiana University - Purdue University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Nit Silchar(National Institute of Technology , Silchar)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Ravensbourne University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of California Berkeley Extension','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of California San Diego Extension','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of New South Wales (Unsw)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of North Texas Health Science Center At Fort Worth','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Università Di Padova','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Istanbul Kultur University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Ghana, Legon','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Negros Occidental','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Nigeria Nsukka','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Nigeria, Nsukka','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Texas Permian Basin','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Università Del Salento','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Université De Franche-Comté','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Université De Tours','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='한양대학교 Hanyang University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Baruch College (Cuny)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='United States Air Force','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Università Di Modena E Reggio Emilia','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Università La Sapienza','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='İstanbul University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universidade Federal De Campina Grande','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Saint La Salle','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Università Della Calabria','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Università Di Roma Tor Vergata','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Université De Technologie De Compiègne','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='California State East Bay','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Pontifical Catholic University of Rio Grande Do Sul','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universidade Do Algarve','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=="Universitat D'Alacant",'keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universitatea Tehnică Cluj-Napoca','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universität Des Saarlandes','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='國立政治大學  National Chengchi University (Nccu)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='U.S. Air Force Academy','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Universidad De Concepción','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Université De Caen Normandie','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Lomonosov Moscow State University (Msu)','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Edinburgh Business School','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='University of Houston-Downtown, College of Business','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Us Air Force Academy','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='Wwu Münster - Münster University','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='San Jose State','keepMatch'] = 1
nextResults.loc[nextResults.unmatched=='West Texas A&M','keepMatch'] = 1

nextResults = nextResults[nextResults.keepMatch==1]
del nextResults['keepMatch']

# Merge unmatched matches with fuzzymatch
addSchools = pd.merge(nextResults, schoolInfo, how='left', left_on = ['match'], right_on = ['school'])
addSchools = addSchools[['unmatched','school','Nation']]
addSchools.rename(columns={'unmatched':'schoolName'},inplace=True)
addSchools.rename(columns={'school':'cleanSchool'},inplace=True)
addSchools.rename(columns={'Nation':'cleanNation'},inplace=True)

# Add to main dataset
resumes = pd.merge(resumes, addSchools, how='left', left_on = ['schoolName'], right_on = ['schoolName'])

# Combine cleaned university and school variables and denote U.S. institutions
resumes.loc[resumes.school.isnull() & resumes.cleanNation.notnull(),'Nation'] = resumes[resumes.school.isnull() & resumes.cleanNation.notnull()]['cleanNation']
resumes.loc[resumes.school.isnull() & resumes.cleanSchool.notnull(),'school'] = resumes[resumes.school.isnull() & resumes.cleanSchool.notnull()]['cleanSchool']
del resumes['cleanSchool']
del resumes['cleanNation']

#-----------------------------
# List popular names that are still unmatched
#-----------------------------

stillMissing = pd.DataFrame(resumes[resumes.school.isnull()].groupby('schoolName').size()).reset_index()
stillMissing = stillMissing[stillMissing[0]>=250]
stillMissing.sort_values(0,inplace=True)
stillMissing.to_csv(savePath + "Unassigned_schools.csv")

notMissing = pd.DataFrame(resumes[resumes.school.notnull()].groupby('school').size()).reset_index()
notMissing.sort_values(0,inplace=True)

#-----------------------------
# ADD REMAINING UNIVERSITIES STILL MISSING
#-----------------------------

print("Add remaining schools.")

resumes.loc[resumes.schoolName=='Ucd Dublin','school'] = 'University College Dublin'
resumes.loc[resumes.schoolName=='Ucd Dublin','Nation'] = 'ie'

resumes.loc[resumes.schoolName=='Maltepe University','school'] = 'Maltepe Üniversitesi'
resumes.loc[resumes.schoolName=='Maltepe University','Nation'] = 'tr'

resumes.loc[resumes.schoolName=='Rotman School of Management, University of Toronto','school'] = 'University of Toronto'
resumes.loc[resumes.schoolName=='Rotman School of Management, University of Toronto','Nation'] = 'ca'
resumes.loc[resumes.schoolName=='The University of Toronto','school'] = 'University of Toronto'
resumes.loc[resumes.schoolName=='The University of Toronto','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='Cornell University, College of Arts And Sciences','school'] = 'Cornell University'
resumes.loc[resumes.schoolName=='Cornell University, College of Arts And Sciences','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Cornell Law School','school'] = 'Cornell University'
resumes.loc[resumes.schoolName=='Cornell Law School','Nation'] = 'us'

resumes.loc[resumes.schoolName=='The University of West Alabama','school'] = 'University of West Alabama'
resumes.loc[resumes.schoolName=='The University of West Alabama','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Glyndwr University','school'] = 'Wrexham Glyndwr University'
resumes.loc[resumes.schoolName=='Glyndwr University','Nation'] = 'gb'
resumes.loc[resumes.schoolName=='Glyndŵr University','school'] = 'Wrexham Glyndwr University'
resumes.loc[resumes.schoolName=='Glyndŵr University','Nation'] = 'gb'
resumes.loc[resumes.schoolName=='Wrexham Glyndŵr University','school'] = 'Wrexham Glyndwr University'
resumes.loc[resumes.schoolName=='Wrexham Glyndŵr University','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='The University of Westminster','school'] = 'University of Westminster'
resumes.loc[resumes.schoolName=='The University of Westminster','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='Goa College of Engineering','school'] = 'Goa College of Engineering'
resumes.loc[resumes.schoolName=='Goa College of Engineering','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Goa Engineering College','school'] = 'Goa College of Engineering'
resumes.loc[resumes.schoolName=='Goa Engineering College','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Temple University Beasley School of Law','school'] = 'Temple University'
resumes.loc[resumes.schoolName=='Temple University Beasley School of Law','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Temple University - Fox School of Business And Management','school'] = 'Temple University'
resumes.loc[resumes.schoolName=='Temple University - Fox School of Business And Management','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Temple University, College of Science And Technology','school'] = 'Temple University'
resumes.loc[resumes.schoolName=='Temple University, College of Science And Technology','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Fox School of Business At Temple University','school'] = 'Temple University'
resumes.loc[resumes.schoolName=='Fox School of Business At Temple University','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Temple University School of Law','school'] = 'Temple University'
resumes.loc[resumes.schoolName=='Temple University School of Law','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Temple University Philadelphia','school'] = 'Temple University'
resumes.loc[resumes.schoolName=='Temple University Philadelphia','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Fordham University, Graduate School of Business','school'] = 'Fordham University'
resumes.loc[resumes.schoolName=='Fordham University, Graduate School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='The University of Southern California','school'] = 'University of Southern California'
resumes.loc[resumes.schoolName=='The University of Southern California','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Middlesex','school'] = 'Middlesex University'
resumes.loc[resumes.schoolName=='University of Middlesex','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='The Ross School of Business','school'] = 'University of Michigan-Ann Arbor'
resumes.loc[resumes.schoolName=='The Ross School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Michigan - Stephen M. Ross School of Business','school'] = 'University of Michigan-Ann Arbor'
resumes.loc[resumes.schoolName=='University of Michigan - Stephen M. Ross School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Ross School of Business','school'] = 'University of Michigan-Ann Arbor'
resumes.loc[resumes.schoolName=='Ross School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Michigan, Ross School of Business','school'] = 'University of Michigan-Ann Arbor'
resumes.loc[resumes.schoolName=='University of Michigan, Ross School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Michigan School of Public Health','school'] = 'University of Michigan-Ann Arbor'
resumes.loc[resumes.schoolName=='University of Michigan School of Public Health','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Southern California - Marshall School of Business','school'] = 'University of Southern California'
resumes.loc[resumes.schoolName=='University of Southern California - Marshall School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Southern California, Viterbi School of Engineering','school'] = 'University of Southern California'
resumes.loc[resumes.schoolName=='University of Southern California, Viterbi School of Engineering','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Maryland, Robert H. Smith School of Business','school'] = 'University of Maryland-College Park'
resumes.loc[resumes.schoolName=='University of Maryland, Robert H. Smith School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Maryland - Robert H. Smith School of Business','school'] = 'University of Maryland-College Park'
resumes.loc[resumes.schoolName=='University of Maryland - Robert H. Smith School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='The University of Alabama, Culverhouse College of Commerce','school'] = 'The University of Alabama'
resumes.loc[resumes.schoolName=='The University of Alabama, Culverhouse College of Commerce','Nation'] = 'us'

resumes.loc[resumes.schoolName=='George Washington University School of Business','school'] = 'George Washington University'
resumes.loc[resumes.schoolName=='George Washington University School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Syracuse University College of Law','school'] = 'Syracuse University'
resumes.loc[resumes.schoolName=='Syracuse University College of Law','Nation'] = 'us'
resumes.loc[resumes.schoolName=='S.I. Newhouse School of Public Communications','school'] = 'Syracuse University'
resumes.loc[resumes.schoolName=='S.I. Newhouse School of Public Communications','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Syracuse University, School of Information Studies','school'] = 'Syracuse University'
resumes.loc[resumes.schoolName=='Syracuse University, School of Information Studies','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Syracuse University, S.I. Newhouse School of Public Communications','school'] = 'Syracuse University'
resumes.loc[resumes.schoolName=='Syracuse University, S.I. Newhouse School of Public Communications','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Washington University, Olin Business School','school'] = 'Washington University in St Louis'
resumes.loc[resumes.schoolName=='Washington University, Olin Business School','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Washington University School of Law','school'] = 'Washington University in St Louis'
resumes.loc[resumes.schoolName=='Washington University School of Law','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Washington University In St. Louis','school'] = 'Washington University in St Louis'
resumes.loc[resumes.schoolName=='Washington University In St. Louis','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Washington University In St. Louis, Olin Business School','school'] = 'Washington University in St Louis'
resumes.loc[resumes.schoolName=='Washington University In St. Louis, Olin Business School','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Washington University In St. Louis - Olin Business School','school'] = 'Washington University in St Louis'
resumes.loc[resumes.schoolName=='Washington University In St. Louis - Olin Business School','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Baruch College, Zicklin School of Business','school'] = 'CUNY Bernard M Baruch College'
resumes.loc[resumes.schoolName=='Baruch College, Zicklin School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Baruch College - Zicklin School of Business','school'] = 'CUNY Bernard M Baruch College'
resumes.loc[resumes.schoolName=='Baruch College - Zicklin School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Baruch College, City University of New York (Cuny)','school'] = 'CUNY Bernard M Baruch College'
resumes.loc[resumes.schoolName=='Baruch College, City University of New York (Cuny)','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Baruch College (Cuny)','school'] = 'CUNY Bernard M Baruch College'
resumes.loc[resumes.schoolName=='Baruch College (Cuny)','Nation'] = 'us'

resumes.loc[resumes.schoolName=='East Carolina University College of Business','school'] = 'East Carolina University'
resumes.loc[resumes.schoolName=='East Carolina University College of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Pace University, Lubin School of Business','school'] = 'Pace University-New York'
resumes.loc[resumes.schoolName=='Pace University, Lubin School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Pace University - Lubin School of Business','school'] = 'Pace University-New York'
resumes.loc[resumes.schoolName=='Pace University - Lubin School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Lubin School of Business','school'] = 'Pace University-New York'
resumes.loc[resumes.schoolName=='Lubin School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Thomas M. Cooley Law School','school'] = 'Western Michigan University'
resumes.loc[resumes.schoolName=='Thomas M. Cooley Law School','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Unc Asheville','school'] = 'University of North Carolina at Asheville'
resumes.loc[resumes.schoolName=='Unc Asheville','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Chicago, Booth School of Business','school'] = 'University of Chicago'
resumes.loc[resumes.schoolName=='University of Chicago, Booth School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Chicago Graduate School of Business','school'] = 'University of Chicago'
resumes.loc[resumes.schoolName=='University of Chicago Graduate School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Dayton School of Law','school'] = 'University of Dayton'
resumes.loc[resumes.schoolName=='University of Dayton School of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Detroit Mercy School of Law','school'] = 'University of Detroit Mercy'
resumes.loc[resumes.schoolName=='University of Detroit Mercy School of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Denver - Daniels College of Business','school'] = 'University of Denver'
resumes.loc[resumes.schoolName=='University of Denver - Daniels College of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Denver Sturm College of Law','school'] = 'University of Denver'
resumes.loc[resumes.schoolName=='University of Denver Sturm College of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Unc Pembroke','school'] = 'University of North Carolina at Pembroke'
resumes.loc[resumes.schoolName=='Unc Pembroke','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Unc Wilmington','school'] = 'University of North Carolina Wilmington'
resumes.loc[resumes.schoolName=='Unc Wilmington','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Arkansas School of Law','school'] = 'University of Arkansas'
resumes.loc[resumes.schoolName=='University of Arkansas School of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Wayne State','school'] = 'Wayne State University'
resumes.loc[resumes.schoolName=='Wayne State','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Wayne State University, Mike Ilitch School of Business','school'] = 'Wayne State University'
resumes.loc[resumes.schoolName=='Wayne State University, Mike Ilitch School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Warwick Business School, University of Warwick','school'] = 'University of Warwick'
resumes.loc[resumes.schoolName=='Warwick Business School, University of Warwick','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='Unc-Chapel Hill','school'] = 'University of North Carolina at Chapel Hill'
resumes.loc[resumes.schoolName=='Unc-Chapel Hill','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of North Carolina School of Law','school'] = 'University of North Carolina at Chapel Hill'
resumes.loc[resumes.schoolName=='University of North Carolina School of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Uncg','school'] = 'University of North Carolina at Greensboro'
resumes.loc[resumes.schoolName=='Uncg','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Boston University, Questrom School of Business','school'] = 'Boston University'
resumes.loc[resumes.schoolName=='Boston University, Questrom School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Wake Forest University School of Business','school'] = 'Wake Forest University'
resumes.loc[resumes.schoolName=='Wake Forest University School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='The Ohio State University Fisher College of Business','school'] = 'Ohio State University-Main Campus'
resumes.loc[resumes.schoolName=='The Ohio State University Fisher College of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Fisher College of Business','school'] = 'Ohio State University-Main Campus'
resumes.loc[resumes.schoolName=='Fisher College of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='The Ohio State University, Max M. Fisher College of Business','school'] = 'Ohio State University-Main Campus'
resumes.loc[resumes.schoolName=='The Ohio State University, Max M. Fisher College of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='The Ohio State University Moritz College of Law','school'] = 'Ohio State University-Main Campus'
resumes.loc[resumes.schoolName=='The Ohio State University Moritz College of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Robert H. Smith School of Business','school'] = 'University of Maryland-College Park'
resumes.loc[resumes.schoolName=='Robert H. Smith School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Arizona, Eller College of Management','school'] = 'University of Arizona'
resumes.loc[resumes.schoolName=='University of Arizona, Eller College of Management','Nation'] = 'us'
resumes.loc[resumes.schoolName=='The University of Arizona, Eller College of Management','school'] = 'University of Arizona'
resumes.loc[resumes.schoolName=='The University of Arizona, Eller College of Management','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Arizona - Eller College of Management','school'] = 'University of Arizona'
resumes.loc[resumes.schoolName=='University of Arizona - Eller College of Management','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Houston, C.T. Bauer College of Business','school'] = 'University of Houston'
resumes.loc[resumes.schoolName=='University of Houston, C.T. Bauer College of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Houston, Cullen College of Engineering','school'] = 'University of Houston'
resumes.loc[resumes.schoolName=='University of Houston, Cullen College of Engineering','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Houston, C. T. Bauer College of Business','school'] = 'University of Houston'
resumes.loc[resumes.schoolName=='University of Houston, C. T. Bauer College of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Saint Louis University School of Law','school'] = 'Saint Louis University'
resumes.loc[resumes.schoolName=='Saint Louis University School of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Wayne State University Law School','school'] = 'Wayne State University'
resumes.loc[resumes.schoolName=='Wayne State University Law School','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Yale Law School','school'] = 'Yale University'
resumes.loc[resumes.schoolName=='Yale Law School','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Wisconsin Law School','school'] = 'University of Wisconsin-Madison'
resumes.loc[resumes.schoolName=='University of Wisconsin Law School','Nation'] = 'us'

resumes.loc[resumes.schoolName=='W.P. Carey School of Business','school'] = 'Arizona State University-Tempe'
resumes.loc[resumes.schoolName=='W.P. Carey School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='W. P. Carey School of Business, Arizona State University','school'] = 'Arizona State University-Tempe'
resumes.loc[resumes.schoolName=='W. P. Carey School of Business, Arizona State University','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Arizona State University, W.P. Carey School of Business','school'] = 'Arizona State University-Tempe'
resumes.loc[resumes.schoolName=='Arizona State University, W.P. Carey School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Arizona State University - W. P. Carey School of Business','school'] = 'Arizona State University-Tempe'
resumes.loc[resumes.schoolName=='Arizona State University - W. P. Carey School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='W. P. Carey School of Business','school'] = 'Arizona State University-Tempe'
resumes.loc[resumes.schoolName=='W. P. Carey School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Walter Cronkite School of Journalism And Mass Communication','school'] = 'Arizona State University-Tempe'
resumes.loc[resumes.schoolName=='Walter Cronkite School of Journalism And Mass Communication','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Georgia, Terry College of Business','school'] = 'University of Georgia'
resumes.loc[resumes.schoolName=='University of Georgia, Terry College of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='The University of Georgia, Terry College of Business','school'] = 'University of Georgia'
resumes.loc[resumes.schoolName=='The University of Georgia, Terry College of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Georgia - Terry College of Business','school'] = 'University of Georgia'
resumes.loc[resumes.schoolName=='University of Georgia - Terry College of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Terry College of Business','school'] = 'University of Georgia'
resumes.loc[resumes.schoolName=='Terry College of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Georgia Tech University','school'] = 'Georgia Institute of Technology-Main Campus'
resumes.loc[resumes.schoolName=='Georgia Tech University','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Texas A&M Corpus Christi','school'] = 'Texas A & M University-Corpus Christi'
resumes.loc[resumes.schoolName=='Texas A&M Corpus Christi','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Texas State Technical College - Waco','school'] = 'Texas State Technical College'
resumes.loc[resumes.schoolName=='Texas State Technical College - Waco','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Texas A&M University (Tamu)','school'] = 'Texas A & M University-College Station'
resumes.loc[resumes.schoolName=='Texas A&M University (Tamu)','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Texas A&M University College','school'] = 'Texas A & M University-College Station'
resumes.loc[resumes.schoolName=='Texas A&M University College','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Texas A&M University ­ College','school'] = 'Texas A & M University-College Station'
resumes.loc[resumes.schoolName=='Texas A&M University ­ College','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Texas A&M University - Mays Business School','school'] = 'Texas A & M University-College Station'
resumes.loc[resumes.schoolName=='Texas A&M University - Mays Business School','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Texas A & M','school'] = 'Texas A & M University-College Station'
resumes.loc[resumes.schoolName=='Texas A & M','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Texas A&M University, Mays Business School     College','school'] = 'Texas A & M University-College Station'
resumes.loc[resumes.schoolName=='Texas A&M University, Mays Business School     College','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Villanova University School of Law','school'] = 'Villanova University'
resumes.loc[resumes.schoolName=='Villanova University School of Law','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Villanova School of Business','school'] = 'Villanova University'
resumes.loc[resumes.schoolName=='Villanova School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='The Pennsylvania State University, Smeal College of Business','school'] = 'Pennsylvania State University-Main Campus'
resumes.loc[resumes.schoolName=='The Pennsylvania State University, Smeal College of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Pennsylvania State University, University Park','school'] = 'Pennsylvania State University-Main Campus'
resumes.loc[resumes.schoolName=='Pennsylvania State University, University Park','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Tulane University, A. B. Freeman School of Business','school'] = 'Tulane University of Louisiana'
resumes.loc[resumes.schoolName=='Tulane University, A. B. Freeman School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Tulane University, A.B. Freeman School of Business','school'] = 'Tulane University of Louisiana'
resumes.loc[resumes.schoolName=='Tulane University, A.B. Freeman School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Tulane University School of Public Health And Tropical Medicine','school'] = 'Tulane University of Louisiana'
resumes.loc[resumes.schoolName=='Tulane University School of Public Health And Tropical Medicine','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Tulane','school'] = 'Tulane University of Louisiana'
resumes.loc[resumes.schoolName=='Tulane','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Tulane Law School','school'] = 'Tulane University of Louisiana'
resumes.loc[resumes.schoolName=='Tulane Law School','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Udayana University','school'] = 'Universitas Udayana'
resumes.loc[resumes.schoolName=='Udayana University','Nation'] = 'id'

resumes.loc[resumes.schoolName=='University of Pittsburgh, College of Business Administration','school'] = 'University of Pittsburgh-Pittsburgh Campus'
resumes.loc[resumes.schoolName=='University of Pittsburgh, College of Business Administration','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Pittsburgh, Swanson School of Engineering','school'] = 'University of Pittsburgh-Pittsburgh Campus'
resumes.loc[resumes.schoolName=='University of Pittsburgh, Swanson School of Engineering','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Minnesota Law School','school'] = 'University of Minnesota-Twin Cities'
resumes.loc[resumes.schoolName=='University of Minnesota Law School','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Mn','school'] = 'University of Minnesota-Twin Cities'
resumes.loc[resumes.schoolName=='University of Mn','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Northeastern University School of Law','school'] = 'Northeastern University'
resumes.loc[resumes.schoolName=='Northeastern University School of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Tulsa College of Law','school'] = 'University of Tulsa'
resumes.loc[resumes.schoolName=='University of Tulsa College of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Binghamton University, State University of New York, School of Management','school'] = 'Binghamton University'
resumes.loc[resumes.schoolName=='Binghamton University, State University of New York, School of Management','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Ucla School of Law','school'] = 'University of California-Los Angeles'
resumes.loc[resumes.schoolName=='Ucla School of Law','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of California At Los Angeles (Ucla)','school'] = 'University of California-Los Angeles'
resumes.loc[resumes.schoolName=='University of California At Los Angeles (Ucla)','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Minnesota Carlson School of Management','school'] = 'University of Minnesota-Twin Cities'
resumes.loc[resumes.schoolName=='University of Minnesota Carlson School of Management','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Minnesota, Carlson School of Management','school'] = 'University of Minnesota-Twin Cities'
resumes.loc[resumes.schoolName=='University of Minnesota, Carlson School of Management','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Curtis L. Carlson School of Management','school'] = 'University of Minnesota-Twin Cities'
resumes.loc[resumes.schoolName=='Curtis L. Carlson School of Management','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Texas A&M University, Mays Business School','school'] = 'Texas A & M University-College Station'
resumes.loc[resumes.schoolName=='Texas A&M University, Mays Business School','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Hofstra University School of Law','school'] = 'Hofstra University'
resumes.loc[resumes.schoolName=='Hofstra University School of Law','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Hofstra University, Frank G. Zarb School of Business','school'] = 'Hofstra University'
resumes.loc[resumes.schoolName=='Hofstra University, Frank G. Zarb School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Maurice A. Deane School of Law At Hofstra University','school'] = 'Hofstra University'
resumes.loc[resumes.schoolName=='Maurice A. Deane School of Law At Hofstra University','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Rutgers University, Rutgers Business School','school'] = 'Rutgers University-New Brunswick'
resumes.loc[resumes.schoolName=='Rutgers University, Rutgers Business School','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Rutgers Business School – Newark And New Brunswick','school'] = 'Rutgers University-New Brunswick'
resumes.loc[resumes.schoolName=='Rutgers Business School – Newark And New Brunswick','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Rutgers, The State University of New Jersey-New Brunswick','school'] = 'Rutgers University-New Brunswick'
resumes.loc[resumes.schoolName=='Rutgers, The State University of New Jersey-New Brunswick','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Rutgers University - Rutgers Business School','school'] = 'Rutgers University-New Brunswick'
resumes.loc[resumes.schoolName=='Rutgers University - Rutgers Business School','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Georgia State University, Robinson College of Business','school'] = 'Georgia State University'
resumes.loc[resumes.schoolName=='Georgia State University, Robinson College of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Georgia State University - J. Mack Robinson College of Business','school'] = 'Georgia State University'
resumes.loc[resumes.schoolName=='Georgia State University - J. Mack Robinson College of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Georgia State University College of Law','school'] = 'Georgia State University'
resumes.loc[resumes.schoolName=='Georgia State University College of Law','Nation'] = 'us'
resumes.loc[resumes.schoolName=='J. Mack Robinson College of Business','school'] = 'Georgia State University'
resumes.loc[resumes.schoolName=='J. Mack Robinson College of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='J. Mack Robinson College of Business, Georgia State University','school'] = 'Georgia State University'
resumes.loc[resumes.schoolName=='J. Mack Robinson College of Business, Georgia State University','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Texas School of Law','school'] = 'The University of Texas at Austin'
resumes.loc[resumes.schoolName=='University of Texas School of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Columbia University School of Social Work','school'] = 'Columbia University in the City of New York'
resumes.loc[resumes.schoolName=='Columbia University School of Social Work','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Columbia University, Columbia College','school'] = 'Columbia University in the City of New York'
resumes.loc[resumes.schoolName=='Columbia University, Columbia College','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Columbia University, School of International And Public Affairs','school'] = 'Columbia University in the City of New York'
resumes.loc[resumes.schoolName=='Columbia University, School of International And Public Affairs','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Maryland School of Law','school'] = 'University of Maryland-College Park'
resumes.loc[resumes.schoolName=='University of Maryland School of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Rice University, Jones Graduate School of Business','school'] = 'Rice University'
resumes.loc[resumes.schoolName=='Rice University, Jones Graduate School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='The Paul Merage School of Business','school'] = 'University of California-Irvine'
resumes.loc[resumes.schoolName=='The Paul Merage School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of California, Irvine - The Paul Merage School of Business','school'] = 'University of California-Irvine'
resumes.loc[resumes.schoolName=='University of California, Irvine - The Paul Merage School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of California, Irvine, The Paul Merage School of Business','school'] = 'University of California-Irvine'
resumes.loc[resumes.schoolName=='University of California, Irvine, The Paul Merage School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Paul Merage School of Business','school'] = 'University of California-Irvine'
resumes.loc[resumes.schoolName=='Paul Merage School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Htw Berlin','school'] = 'HTW Berlin'
resumes.loc[resumes.schoolName=='Htw Berlin','Nation'] = 'de'
resumes.loc[resumes.schoolName=='Hochschule Für Technik Und Wirtschaft Berlin','school'] = 'HTW Berlin'
resumes.loc[resumes.schoolName=='Hochschule Für Technik Und Wirtschaft Berlin','Nation'] = 'de'

resumes.loc[resumes.schoolName=='Hull University','school'] = 'The University of Hull'
resumes.loc[resumes.schoolName=='Hull University','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='University of Utrecht','school'] = 'Universiteit Utrecht'
resumes.loc[resumes.schoolName=='University of Utrecht','Nation'] = 'nl'

resumes.loc[resumes.schoolName=='The Nottingham Trent University','school'] = 'Nottingham Trent University'
resumes.loc[resumes.schoolName=='The Nottingham Trent University','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='Mnnit Allahabad','school'] = 'Motilal Nehru National Institute of Technology Allahabad'
resumes.loc[resumes.schoolName=='Mnnit Allahabad','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Mnnit','school'] = 'Motilal Nehru National Institute of Technology Allahabad'
resumes.loc[resumes.schoolName=='Mnnit','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Montana Tech','school'] = 'The University of Montana'
resumes.loc[resumes.schoolName=='Montana Tech','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Montana Tech of The University of Montana','school'] = 'The University of Montana'
resumes.loc[resumes.schoolName=='Montana Tech of The University of Montana','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Montana Tech of University of Montana','school'] = 'The University of Montana'
resumes.loc[resumes.schoolName=='Montana Tech of University of Montana','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Massachusetts Institute of Technology - Sloan School of Management','school'] = 'Massachusetts Institute of Technology'
resumes.loc[resumes.schoolName=='Massachusetts Institute of Technology - Sloan School of Management','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Miami University of Ohio','school'] = 'Miami University-Oxford'
resumes.loc[resumes.schoolName=='Miami University of Ohio','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Miami University, Farmer School of Business','school'] = 'Miami University-Oxford'
resumes.loc[resumes.schoolName=='Miami University, Farmer School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Michigan University','school'] = 'University of Michigan-Ann Arbor'
resumes.loc[resumes.schoolName=='Michigan University','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Toulouse School of Economics','school'] = 'Toulouse 1 Capitole University'
resumes.loc[resumes.schoolName=='Toulouse School of Economics','Nation'] = 'fr'

resumes.loc[resumes.schoolName=='University of Virginia, College of Arts And Sciences','school'] = 'University of Virginia-Main Campus'
resumes.loc[resumes.schoolName=='University of Virginia, College of Arts And Sciences','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Virginia, Darden School of Business','school'] = 'University of Virginia-Main Campus'
resumes.loc[resumes.schoolName=='University of Virginia, Darden School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Darden School of Business, University of Virginia','school'] = 'University of Virginia-Main Campus'
resumes.loc[resumes.schoolName=='Darden School of Business, University of Virginia','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Va Tech','school'] = 'Virginia Polytechnic Institute and State University'
resumes.loc[resumes.schoolName=='Va Tech','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Michigan State','school'] = 'Michigan State University'
resumes.loc[resumes.schoolName=='Michigan State','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Michigan State University (Msu)','school'] = 'Michigan State University'
resumes.loc[resumes.schoolName=='Michigan State University (Msu)','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Michigan State University, Eli Broad College of Business','school'] = 'Michigan State University'
resumes.loc[resumes.schoolName=='Michigan State University, Eli Broad College of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Western Michigan University, Haworth College of Business','school'] = 'Western Michigan University'
resumes.loc[resumes.schoolName=='Western Michigan University, Haworth College of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Johns Hopkins Carey Business School','school'] = 'Johns Hopkins University'
resumes.loc[resumes.schoolName=='Johns Hopkins Carey Business School','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Johns Hopkins School of Advanced International Studies | Sais','school'] = 'Johns Hopkins University'
resumes.loc[resumes.schoolName=='Johns Hopkins School of Advanced International Studies | Sais','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Johns Hopkins University, Carey Business School','school'] = 'Johns Hopkins University'
resumes.loc[resumes.schoolName=='Johns Hopkins University, Carey Business School','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of North Carolina, Kenan-Flagler Business School','school'] = 'University of North Carolina at Chapel Hill'
resumes.loc[resumes.schoolName=='University of North Carolina, Kenan-Flagler Business School','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Unc Kenan-Flagler Business School','school'] = 'University of North Carolina at Chapel Hill'
resumes.loc[resumes.schoolName=='Unc Kenan-Flagler Business School','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Arkansas, Sam M. Walton College of Business','school'] = 'University of Arkansas'
resumes.loc[resumes.schoolName=='University of Arkansas, Sam M. Walton College of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Tuck School of Business At Dartmouth','school'] = 'Dartmouth College'
resumes.loc[resumes.schoolName=='Tuck School of Business At Dartmouth','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Tuck School of Business','school'] = 'Dartmouth College'
resumes.loc[resumes.schoolName=='Tuck School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Denver, Daniels College of Business','school'] = 'University of Denver'
resumes.loc[resumes.schoolName=='University of Denver, Daniels College of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Hong Kong University','school'] = 'The University of Hong Kong'
resumes.loc[resumes.schoolName=='Hong Kong University','Nation'] = 'hk'

resumes.loc[resumes.schoolName=='New York University, Stern School of Business','school'] = 'New York University'
resumes.loc[resumes.schoolName=='New York University, Stern School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='New York University, Tisch School of The Arts','school'] = 'New York University'
resumes.loc[resumes.schoolName=='New York University, Tisch School of The Arts','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Nyu School of Professional Studies','school'] = 'New York University'
resumes.loc[resumes.schoolName=='Nyu School of Professional Studies','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Leonard N. Stern School of Business','school'] = 'New York University'
resumes.loc[resumes.schoolName=='Leonard N. Stern School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='New York University - Leonard N. Stern School of Business','school'] = 'New York University'
resumes.loc[resumes.schoolName=='New York University - Leonard N. Stern School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Nyu Tisch School of The Arts','school'] = 'New York University'
resumes.loc[resumes.schoolName=='Nyu Tisch School of The Arts','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Stern School of Business','school'] = 'New York University'
resumes.loc[resumes.schoolName=='Stern School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Tisch School of The Arts','school'] = 'New York University'
resumes.loc[resumes.schoolName=='Tisch School of The Arts','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Stern School of Business, New York University','school'] = 'New York University'
resumes.loc[resumes.schoolName=='Stern School of Business, New York University','Nation'] = 'us'

resumes.loc[resumes.schoolName=='上海交通大学','school'] = 'Shanghai Jiao Tong University'
resumes.loc[resumes.schoolName=='上海交通大学','Nation'] = 'cn'

resumes.loc[resumes.schoolName=='Weatherhead School of Management','school'] = 'Case Western Reserve University'
resumes.loc[resumes.schoolName=='Weatherhead School of Management','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Hogeschool Zuyd','school'] = 'Zuyd Hogeschool'
resumes.loc[resumes.schoolName=='Hogeschool Zuyd','Nation'] = 'nl'

resumes.loc[resumes.schoolName=='Wits University','school'] = 'University of the Witwatersrand'
resumes.loc[resumes.schoolName=='Wits University','Nation'] = 'za'
resumes.loc[resumes.schoolName=='Wits Business School','school'] = 'University of the Witwatersrand'
resumes.loc[resumes.schoolName=='Wits Business School','Nation'] = 'za'
resumes.loc[resumes.schoolName=='Witwatersrand','school'] = 'University of the Witwatersrand'
resumes.loc[resumes.schoolName=='Witwatersrand','Nation'] = 'za'
resumes.loc[resumes.schoolName=='Wits - University of The Witwatersrand','school'] = 'University of the Witwatersrand'
resumes.loc[resumes.schoolName=='Wits - University of The Witwatersrand','Nation'] = 'za'

resumes.loc[resumes.schoolName=='Georgia Institute of Technology, Scheller College of Business','school'] = 'Georgia Institute of Technology-Main Campus'
resumes.loc[resumes.schoolName=='Georgia Institute of Technology, Scheller College of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Pennsylvania - The Wharton School','school'] = 'University of Pennsylvania'
resumes.loc[resumes.schoolName=='University of Pennsylvania - The Wharton School','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Wharton School of Business','school'] = 'University of Pennsylvania'
resumes.loc[resumes.schoolName=='Wharton School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='The Wharton School of The University of Pennsylvania','school'] = 'University of Pennsylvania'
resumes.loc[resumes.schoolName=='The Wharton School of The University of Pennsylvania','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Wharton School','school'] = 'University of Pennsylvania'
resumes.loc[resumes.schoolName=='Wharton School','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Tufts University School of Medicine','school'] = 'Tufts University'
resumes.loc[resumes.schoolName=='Tufts University School of Medicine','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Tufts University School of Dental Medicine','school'] = 'Tufts University'
resumes.loc[resumes.schoolName=='Tufts University School of Dental Medicine','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Thurgood Marshall School of Law','school'] = 'Texas Southern University'
resumes.loc[resumes.schoolName=='Thurgood Marshall School of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Emory University - Goizueta Business School','school'] = 'Emory University'
resumes.loc[resumes.schoolName=='Emory University - Goizueta Business School','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Emory University School of Medicine','school'] = 'Emory University'
resumes.loc[resumes.schoolName=='Emory University School of Medicine','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Rollins School of Public Health, Emory University','school'] = 'Emory University'
resumes.loc[resumes.schoolName=='Rollins School of Public Health, Emory University','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Rotman School of Management','school'] = 'University of Toronto'
resumes.loc[resumes.schoolName=='Rotman School of Management','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='Rotterdam University of Applied Sciences','school'] = 'Hogeschool Rotterdam'
resumes.loc[resumes.schoolName=='Rotterdam University of Applied Sciences','Nation'] = 'nl'

resumes.loc[resumes.schoolName=='Harvard Kennedy School','school'] = 'Harvard University'
resumes.loc[resumes.schoolName=='Harvard Kennedy School','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Gonzaga University School of Law','school'] = 'Gonzaga University'
resumes.loc[resumes.schoolName=='Gonzaga University School of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Goodman School of Business, Brock University','school'] = 'Brock University'
resumes.loc[resumes.schoolName=='Goodman School of Business, Brock University','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='Gothenburg University','school'] = 'University of Gothenburg'
resumes.loc[resumes.schoolName=='Gothenburg University','Nation'] = 'se'

resumes.loc[resumes.schoolName=='Gubkin Russian State University of Oil And Gas','school'] = 'The National University of Oil and Gas'
resumes.loc[resumes.schoolName=='Gubkin Russian State University of Oil And Gas','Nation'] = 'ru'

resumes.loc[resumes.schoolName=='Escola Politécnica Da Universidade De São Paulo','school'] = 'Universidade de São Paulo'
resumes.loc[resumes.schoolName=='Escola Politécnica Da Universidade De São Paulo','Nation'] = 'br'
resumes.loc[resumes.schoolName=='Escola Politécnica Da Usp','school'] = 'Universidade de São Paulo'
resumes.loc[resumes.schoolName=='Escola Politécnica Da Usp','Nation'] = 'br'

resumes.loc[resumes.schoolName=='Espm Escola Superior De Propaganda E Marketing','school'] = 'Escola Superior de Propaganda e Marketing'
resumes.loc[resumes.schoolName=='Espm Escola Superior De Propaganda E Marketing','Nation'] = 'br'
resumes.loc[resumes.schoolName=='Espm - Escola Superior De Propaganda E Marketing','school'] = 'Escola Superior de Propaganda e Marketing'
resumes.loc[resumes.schoolName=='Espm - Escola Superior De Propaganda E Marketing','Nation'] = 'br'
resumes.loc[resumes.schoolName=='Escola Superior De Propaganda E Marketing (Espm)','school'] = 'Escola Superior de Propaganda e Marketing'
resumes.loc[resumes.schoolName=='Escola Superior De Propaganda E Marketing (Espm)','Nation'] = 'br'

resumes.loc[resumes.schoolName=='Birkbeck University','school'] = 'Birkbeck, University of London'
resumes.loc[resumes.schoolName=='Birkbeck University','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='London South Bank Uk','school'] = 'London South Bank University'
resumes.loc[resumes.schoolName=='London South Bank Uk','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='Stirling University','school'] = 'University of Stirling'
resumes.loc[resumes.schoolName=='Stirling University','Nation'] = 'gb'
resumes.loc[resumes.schoolName=='Stirling Uni.','school'] = 'University of Stirling'
resumes.loc[resumes.schoolName=='Stirling Uni.','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='University of Ulm','school'] = 'Universität Ulm'
resumes.loc[resumes.schoolName=='University of Ulm','Nation'] = 'de'

resumes.loc[resumes.schoolName=='Freie Universität','school'] = 'Freie Universität Berlin'
resumes.loc[resumes.schoolName=='Freie Universität','Nation'] = 'de'

resumes.loc[resumes.schoolName=='Fom Hochschule Für Oekonomie & Management','school'] = 'FOM University of Applied Sciences for Economics and Management'
resumes.loc[resumes.schoolName=='Fom Hochschule Für Oekonomie & Management','Nation'] = 'de'

resumes.loc[resumes.schoolName=='Binghamton University, State University of New York, Watson School of Engineering','school'] = 'Binghamton University'
resumes.loc[resumes.schoolName=='Binghamton University, State University of New York, Watson School of Engineering','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Stonybrook University','school'] = 'Stony Brook University'
resumes.loc[resumes.schoolName=='Stonybrook University','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Stony Brook University, State University of New York','school'] = 'Stony Brook University'
resumes.loc[resumes.schoolName=='Stony Brook University, State University of New York','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Tianjin University of Finance And Economics','school'] = 'Tianjin University of Finance And Economics'
resumes.loc[resumes.schoolName=='Tianjin University of Finance And Economics','Nation'] = 'cn'

resumes.loc[resumes.schoolName=='Florida State University College of Law','school'] = 'Florida State University'
resumes.loc[resumes.schoolName=='Florida State University College of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Indiana University Kelley School of Business','school'] = 'Indiana University-Bloomington'
resumes.loc[resumes.schoolName=='Indiana University Kelley School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='U.C. Berkeley','school'] = 'University of California-Berkeley'
resumes.loc[resumes.schoolName=='U.C. Berkeley','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Université De Paris','school'] = 'Université de Paris'
resumes.loc[resumes.schoolName=='Université De Paris','Nation'] = 'fr'

resumes.loc[resumes.schoolName=='The University of Tokyo / Utokyo','school'] = 'The University of Tokyo'
resumes.loc[resumes.schoolName=='The University of Tokyo / Utokyo','Nation'] = 'jp'

resumes.loc[resumes.schoolName=='University of Utah - David Eccles School of Business','school'] = 'University of Utah'
resumes.loc[resumes.schoolName=='University of Utah - David Eccles School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='David Eccles School of Business, University of Utah','school'] = 'University of Utah'
resumes.loc[resumes.schoolName=='David Eccles School of Business, University of Utah','Nation'] = 'us'
resumes.loc[resumes.schoolName=='David Eccles School of Business','school'] = 'University of Utah'
resumes.loc[resumes.schoolName=='David Eccles School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='George Mason University School of Law','school'] = 'George Mason University'
resumes.loc[resumes.schoolName=='George Mason University School of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Georgia Institute of Technology, College of Engineering','school'] = 'Georgia Institute of Technology-Main Campus'
resumes.loc[resumes.schoolName=='Georgia Institute of Technology, College of Engineering','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Fordham Gabelli School of Business','school'] = 'Fordham University'
resumes.loc[resumes.schoolName=='Fordham Gabelli School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Fordham University Graduate School of Social Service','school'] = 'Fordham University'
resumes.loc[resumes.schoolName=='Fordham University Graduate School of Social Service','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Gabelli School of Business','school'] = 'Fordham University'
resumes.loc[resumes.schoolName=='Gabelli School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Fordham University Gabelli School of Business','school'] = 'Fordham University'
resumes.loc[resumes.schoolName=='Fordham University Gabelli School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Drexel University College of Medicine','school'] = 'Drexel University'
resumes.loc[resumes.schoolName=='Drexel University College of Medicine','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Drexel University, Lebow College of Business','school'] = 'Drexel University'
resumes.loc[resumes.schoolName=='Drexel University, Lebow College of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Duke University School of Law','school'] = 'Duke University'
resumes.loc[resumes.schoolName=='Duke University School of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Duquesne University School of Law','school'] = 'Duquesne University'
resumes.loc[resumes.schoolName=='Duquesne University School of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Lund','school'] = 'Lunds universitet'
resumes.loc[resumes.schoolName=='University of Lund','Nation'] = 'se'

resumes.loc[resumes.schoolName=='University College Dublin - National University of Ireland, Dublin','school'] = 'University College Dublin'
resumes.loc[resumes.schoolName=='University College Dublin - National University of Ireland, Dublin','Nation'] = 'ie'

resumes.loc[resumes.schoolName=='Carnegie Mellon University, Tepper School of Business','school'] = 'Carnegie Mellon University'
resumes.loc[resumes.schoolName=='Carnegie Mellon University, Tepper School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Tepper School of Business','school'] = 'Carnegie Mellon University'
resumes.loc[resumes.schoolName=='Tepper School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Carnegie Mellon University - Tepper School of Business','school'] = 'Carnegie Mellon University'
resumes.loc[resumes.schoolName=='Carnegie Mellon University - Tepper School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Carnegie Mellon University, School of Computer Science','school'] = 'Carnegie Mellon University'
resumes.loc[resumes.schoolName=='Carnegie Mellon University, School of Computer Science','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Washington, Michael G. Foster School of Business','school'] = 'University of Washington-Seattle Campus'
resumes.loc[resumes.schoolName=='University of Washington, Michael G. Foster School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Foster School of Business','school'] = 'University of Washington-Seattle Campus'
resumes.loc[resumes.schoolName=='Foster School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='The Michael G. Foster School of Business, University of Washington','school'] = 'University of Washington-Seattle Campus'
resumes.loc[resumes.schoolName=='The Michael G. Foster School of Business, University of Washington','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Washington - Michael G. Foster School of Business','school'] = 'University of Washington-Seattle Campus'
resumes.loc[resumes.schoolName=='University of Washington - Michael G. Foster School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Washington Foster School of Business','school'] = 'University of Washington-Seattle Campus'
resumes.loc[resumes.schoolName=='University of Washington Foster School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Washington School of Law','school'] = 'University of Washington-Seattle Campus'
resumes.loc[resumes.schoolName=='University of Washington School of Law','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Washington Seattle','school'] = 'University of Washington-Seattle Campus'
resumes.loc[resumes.schoolName=='University of Washington Seattle','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Washington, Foster School of Business','school'] = 'University of Washington-Seattle Campus'
resumes.loc[resumes.schoolName=='University of Washington, Foster School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Fox School of Business','school'] = 'Temple University'
resumes.loc[resumes.schoolName=='Fox School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Tyler School of Art','school'] = 'Temple University'
resumes.loc[resumes.schoolName=='Tyler School of Art','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Tyler School of Art, Temple University','school'] = 'Temple University'
resumes.loc[resumes.schoolName=='Tyler School of Art, Temple University','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Sydney University','school'] = 'The University of Sydney'
resumes.loc[resumes.schoolName=='Sydney University','Nation'] = 'au'

resumes.loc[resumes.schoolName=='Uniwersytet Im. Adama Mickiewicza W Poznaniu','school'] = 'Adam Mickiewicz University in Pozna?'
resumes.loc[resumes.schoolName=='Uniwersytet Im. Adama Mickiewicza W Poznaniu','Nation'] = 'pl'
resumes.loc[resumes.schoolName=='Uniwersytet Adama Mickiewicza','school'] = 'Adam Mickiewicz University in Pozna?'
resumes.loc[resumes.schoolName=='Uniwersytet Adama Mickiewicza','Nation'] = 'pl'

resumes.loc[resumes.schoolName=='Frank G. Zarb School of Business, Hofstra University','school'] = 'Hofstra University'
resumes.loc[resumes.schoolName=='Frank G. Zarb School of Business, Hofstra University','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Frank G. Zarb School of Business','school'] = 'Hofstra University'
resumes.loc[resumes.schoolName=='Frank G. Zarb School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Virginia School of Law','school'] = 'University of Virginia-Main Campus'
resumes.loc[resumes.schoolName=='University of Virginia School of Law','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Virginia, Mcintire School of Commerce','school'] = 'University of Virginia-Main Campus'
resumes.loc[resumes.schoolName=='University of Virginia, Mcintire School of Commerce','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Howard University School of Law','school'] = 'Howard University'
resumes.loc[resumes.schoolName=='Howard University School of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Golden Gate University School of Law','school'] = 'Golden Gate University-San Francisco'
resumes.loc[resumes.schoolName=='Golden Gate University School of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Pepperdine University School of Law','school'] = 'Pepperdine University'
resumes.loc[resumes.schoolName=='Pepperdine University School of Law','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Pepperdine Graziadio School of Business And Management','school'] = 'Pepperdine University'
resumes.loc[resumes.schoolName=='Pepperdine Graziadio School of Business And Management','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Loyola University Chicago School of Law','school'] = 'Loyola University Chicago'
resumes.loc[resumes.schoolName=='Loyola University Chicago School of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Università Degli Studi Di Firenze','school'] = 'Università Degli Studi Di Firenze'
resumes.loc[resumes.schoolName=='Università Degli Studi Di Firenze','Nation'] = 'it'

resumes.loc[resumes.schoolName=='Beedie School of Business, Simon Fraser University','school'] = 'Simon Fraser University'
resumes.loc[resumes.schoolName=='Beedie School of Business, Simon Fraser University','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='Tu Darmstadt','school'] = 'Technische Universität Darmstadt'
resumes.loc[resumes.schoolName=='Tu Darmstadt','Nation'] = 'de'

resumes.loc[resumes.schoolName=='Darmstadt University of Applied Sciences','school'] = 'Hochschule Darmstadt'
resumes.loc[resumes.schoolName=='Darmstadt University of Applied Sciences','Nation'] = 'de'

resumes.loc[resumes.schoolName=='Tu Eindhoven','school'] = 'Technische Universiteit Eindhoven'
resumes.loc[resumes.schoolName=='Tu Eindhoven','Nation'] = 'de'

resumes.loc[resumes.schoolName=='Insead Business School','school'] = 'INSEAD'
resumes.loc[resumes.schoolName=='Insead Business School','Nation'] = 'fr'

resumes.loc[resumes.schoolName=='Universiteit Leiden / Leiden University','school'] = 'Universiteit Leiden'
resumes.loc[resumes.schoolName=='Universiteit Leiden / Leiden University','Nation'] = 'nl'

resumes.loc[resumes.schoolName=='Laurentian University - Université Laurentienne','school'] = 'Laurentian University'
resumes.loc[resumes.schoolName=='Laurentian University - Université Laurentienne','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='Yıldız Teknik Üniversitesi','school'] = 'Yildiz Technical University'
resumes.loc[resumes.schoolName=='Yıldız Teknik Üniversitesi','Nation'] = 'tr'

resumes.loc[resumes.schoolName=='University of Puerto Rico','school'] = 'University of Puerto Rico-Rio Piedras'
resumes.loc[resumes.schoolName=='University of Puerto Rico','Nation'] = 'pr'
resumes.loc[resumes.schoolName=='University of Puerto Rico, Río Piedras Campus','school'] = 'University of Puerto Rico-Rio Piedras'
resumes.loc[resumes.schoolName=='University of Puerto Rico, Río Piedras Campus','Nation'] = 'pr'

resumes.loc[resumes.schoolName=='University of The Philippines','school'] = 'University of the Philippines Diliman'
resumes.loc[resumes.schoolName=='University of The Philippines','Nation'] = 'ph'

resumes.loc[resumes.schoolName=='Punjabi University','school'] = 'Punjabi University Patiala'
resumes.loc[resumes.schoolName=='Punjabi University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='West Bengal University of Technology (Wbut)','school'] = 'Maulana Abul Kalam Azad University of Technology, West Bengal'
resumes.loc[resumes.schoolName=='West Bengal University of Technology (Wbut)','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Wbut','school'] = 'Maulana Abul Kalam Azad University of Technology, West Bengal'
resumes.loc[resumes.schoolName=='Wbut','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Bits-Pilani','school'] = 'Birla Institute of Technology and Science'
resumes.loc[resumes.schoolName=='Bits-Pilani','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Bits Pilani University','school'] = 'Birla Institute of Technology and Science'
resumes.loc[resumes.schoolName=='Bits Pilani University','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Bits Pilani Hyderabad Campus','school'] = 'Birla Institute of Technology and Science'
resumes.loc[resumes.schoolName=='Bits Pilani Hyderabad Campus','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Bits Pilani Goa Campus','school'] = 'Birla Institute of Technology and Science'
resumes.loc[resumes.schoolName=='Bits Pilani Goa Campus','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Bits Pilani, K. K. Birla Goa Campus','school'] = 'Birla Institute of Technology and Science'
resumes.loc[resumes.schoolName=='Bits Pilani, K. K. Birla Goa Campus','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Kanpur University','school'] = 'Chhatrapati Shahu Ji Maharaj University'
resumes.loc[resumes.schoolName=='Kanpur University','Nation'] = 'in'
resumes.loc[resumes.schoolName=='C.S.J.M University','school'] = 'Chhatrapati Shahu Ji Maharaj University'
resumes.loc[resumes.schoolName=='C.S.J.M University','Nation'] = 'in'
resumes.loc[resumes.schoolName=='C.S.J.M. University','school'] = 'Chhatrapati Shahu Ji Maharaj University'
resumes.loc[resumes.schoolName=='C.S.J.M. University','Nation'] = 'in'
resumes.loc[resumes.schoolName=='C.S.J.M. University, Kanpur','school'] = 'Chhatrapati Shahu Ji Maharaj University'
resumes.loc[resumes.schoolName=='C.S.J.M. University, Kanpur','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Csjm Kanpur University, Kanpur','school'] = 'Chhatrapati Shahu Ji Maharaj University'
resumes.loc[resumes.schoolName=='Csjm Kanpur University, Kanpur','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Csjm University Kanpur','school'] = 'Chhatrapati Shahu Ji Maharaj University'
resumes.loc[resumes.schoolName=='Csjm University Kanpur','Nation'] = 'in'
resumes.loc[resumes.schoolName=='C.S.J.M. University Kanpur','school'] = 'Chhatrapati Shahu Ji Maharaj University'
resumes.loc[resumes.schoolName=='C.S.J.M. University Kanpur','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Nit Srinagar','school'] = 'National Institute of Technology, Srinagar'
resumes.loc[resumes.schoolName=='Nit Srinagar','Nation'] = 'in'

resumes.loc[resumes.schoolName=="Ca' Foscari University",'school'] = "Università Ca' Foscari di Venezia"
resumes.loc[resumes.schoolName=="Ca' Foscari University",'Nation'] = 'it'
resumes.loc[resumes.schoolName=="Università Ca' Foscari",'school'] = "Università Ca' Foscari di Venezia"
resumes.loc[resumes.schoolName=="Università Ca' Foscari",'Nation'] = 'it'

resumes.loc[resumes.schoolName=='Baskent University','school'] = 'Baskent Üniversitesi'
resumes.loc[resumes.schoolName=='Baskent University','Nation'] = 'tr'

resumes.loc[resumes.schoolName=='Bayero University','school'] = 'Bayero University Kano'
resumes.loc[resumes.schoolName=='Bayero University','Nation'] = 'ng'

resumes.loc[resumes.schoolName=='Ramaiah Institute of Technology','school'] = 'Ramaiah Institute of Technology'
resumes.loc[resumes.schoolName=='Ramaiah Institute of Technology','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Sikkim Manipal University (Smu)','school'] = 'Sikkim Manipal University'
resumes.loc[resumes.schoolName=='Sikkim Manipal University (Smu)','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Universidade Do Algarve','school'] = 'University of Algarve'
resumes.loc[resumes.schoolName=='Universidade Do Algarve','Nation'] = 'pt'

resumes.loc[resumes.schoolName=='Kalinga Institute of Industrial Technology','school'] = 'KIIT University'
resumes.loc[resumes.schoolName=='Kalinga Institute of Industrial Technology','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Uninove','school'] = 'Universidade Nove de Julho'
resumes.loc[resumes.schoolName=='Uninove','Nation'] = 'br'

resumes.loc[resumes.schoolName=='Huazhong University of Science And Technology (Hust)','school'] = 'Huazhong University of Science and Technology'
resumes.loc[resumes.schoolName=='Huazhong University of Science And Technology (Hust)','Nation'] = 'cn'

resumes.loc[resumes.schoolName=='University of Tirana','school'] = 'Universiteti i Tiranës'
resumes.loc[resumes.schoolName=='University of Tirana','Nation'] = 'al'

resumes.loc[resumes.schoolName=='Southampton Solent University','school'] = 'Solent University'
resumes.loc[resumes.schoolName=='Southampton Solent University','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='Southampton Solent University - Official','school'] = 'Solent University'
resumes.loc[resumes.schoolName=='Southampton Solent University - Official','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='Tunku Abdul Rahman College','school'] = 'Tunku Abdul Rahman University College'
resumes.loc[resumes.schoolName=='Tunku Abdul Rahman College','Nation'] = 'my'

resumes.loc[resumes.schoolName=='Escola Superior De Propaganda E Marketing','school'] = 'Escola Superior de Propaganda e Marketing'
resumes.loc[resumes.schoolName=='Escola Superior De Propaganda E Marketing','Nation'] = 'br'
resumes.loc[resumes.schoolName=='Escola Superior De Propaganda E Marketing - Espm','school'] = 'Escola Superior de Propaganda e Marketing'
resumes.loc[resumes.schoolName=='Escola Superior De Propaganda E Marketing - Espm','Nation'] = 'br'

resumes.loc[resumes.schoolName=='San Diego State University (Sdsu)','school'] = 'San Diego State University'
resumes.loc[resumes.schoolName=='San Diego State University (Sdsu)','Nation'] = 'us'

resumes.loc[resumes.schoolName=='San Jose State','school'] = 'San Jose State University'
resumes.loc[resumes.schoolName=='San Jose State','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Isenberg School of Management','school'] = 'University of Massachusetts-Amherst'
resumes.loc[resumes.schoolName=='Isenberg School of Management','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Umass','school'] = 'University of Massachusetts-Amherst'
resumes.loc[resumes.schoolName=='Umass','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Agra University','school'] = 'Dr. Bhimrao Ambedkar University'
resumes.loc[resumes.schoolName=='Agra University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='S.V University','school'] = 'Sri Venkateswara University'
resumes.loc[resumes.schoolName=='S.V University','Nation'] = 'in'
resumes.loc[resumes.schoolName=='S.V. University','school'] = 'Sri Venkateswara University'
resumes.loc[resumes.schoolName=='S.V. University','Nation'] = 'in'
resumes.loc[resumes.schoolName=='S.V.University','school'] = 'Sri Venkateswara University'
resumes.loc[resumes.schoolName=='S.V.University','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Sv University','school'] = 'Sri Venkateswara University'
resumes.loc[resumes.schoolName=='Sv University','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Sv University, Tirupati','school'] = 'Sri Venkateswara University'
resumes.loc[resumes.schoolName=='Sv University, Tirupati','Nation'] = 'in'
resumes.loc[resumes.schoolName=='S V University','school'] = 'Sri Venkateswara University'
resumes.loc[resumes.schoolName=='S V University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Dr. Bhim Rao Ambedkar University','school'] = 'Dr. Bhimrao Ambedkar University'
resumes.loc[resumes.schoolName=='Dr. Bhim Rao Ambedkar University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Amrita University','school'] = 'Amrita Vishwa Vidyapeetham'
resumes.loc[resumes.schoolName=='Amrita University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Kumaraguru College of Technology','school'] = 'Kumaraguru College of Technology'
resumes.loc[resumes.schoolName=='Kumaraguru College of Technology','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Siddaganga Institute of Technology','school'] = 'Siddaganga Institute of Technology'
resumes.loc[resumes.schoolName=='Siddaganga Institute of Technology','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Pune Institute of Computer Technology','school'] = 'Pune Institute of Computer Technology'
resumes.loc[resumes.schoolName=='Pune Institute of Computer Technology','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Sinhgad College of Engineering','school'] = 'Sinhgad College of Engineering'
resumes.loc[resumes.schoolName=='Sinhgad College of Engineering','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Delhi College of Engineering','school'] = 'Delhi Technological University'
resumes.loc[resumes.schoolName=='Delhi College of Engineering','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Rtm Nagpur University','school'] = 'Rashtrasant Tukadoji Maharaj Nagpur University'
resumes.loc[resumes.schoolName=='Rtm Nagpur University','Nation'] = 'in'
resumes.loc[resumes.schoolName=='R.T.M. Nagpur University','school'] = 'Rashtrasant Tukadoji Maharaj Nagpur University'
resumes.loc[resumes.schoolName=='R.T.M. Nagpur University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='R V College of Engineering','school'] = 'Rashtreeya Vidyalaya College of Engineering'
resumes.loc[resumes.schoolName=='R V College of Engineering','Nation'] = 'in'
resumes.loc[resumes.schoolName=='R. V. College of Engineering','school'] = 'Rashtreeya Vidyalaya College of Engineering'
resumes.loc[resumes.schoolName=='R. V. College of Engineering','Nation'] = 'in'
resumes.loc[resumes.schoolName=='R.V College of Engineering','school'] = 'Rashtreeya Vidyalaya College of Engineering'
resumes.loc[resumes.schoolName=='R.V College of Engineering','Nation'] = 'in'
resumes.loc[resumes.schoolName=='R.V. College of Engineering','school'] = 'Rashtreeya Vidyalaya College of Engineering'
resumes.loc[resumes.schoolName=='R.V. College of Engineering','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Shobhit University','school'] = 'Shobhit Institute of Engineering and Technology'
resumes.loc[resumes.schoolName=='Shobhit University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Virtual University of Pakistan','school'] = 'Virtual University of Pakistan'
resumes.loc[resumes.schoolName=='Virtual University of Pakistan','Nation'] = 'pk'

resumes.loc[resumes.schoolName=='Warwick Business School','school'] = 'The University of Warwick'
resumes.loc[resumes.schoolName=='Warwick Business School','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='Mapúa Institute of Technology','school'] = 'Mapúa University'
resumes.loc[resumes.schoolName=='Mapúa Institute of Technology','Nation'] = 'ph'

resumes.loc[resumes.schoolName=='Sorbonne','school'] = 'Sorbonne University'
resumes.loc[resumes.schoolName=='Sorbonne','Nation'] = 'fr'
resumes.loc[resumes.schoolName=='Université Paris Sorbonne - Paris Iv','school'] = 'Sorbonne University'
resumes.loc[resumes.schoolName=='Université Paris Sorbonne - Paris Iv','Nation'] = 'fr'

resumes.loc[resumes.schoolName=='Griffith College Dublin','school'] = 'Griffith College Dublin'
resumes.loc[resumes.schoolName=='Griffith College Dublin','Nation'] = 'ie'
resumes.loc[resumes.schoolName=='Griffith College','school'] = 'Griffith College Dublin'
resumes.loc[resumes.schoolName=='Griffith College','Nation'] = 'ie'

resumes.loc[resumes.schoolName=='Ucd Michael Smurfit Graduate Business School','school'] = 'University College Dublin'
resumes.loc[resumes.schoolName=='Ucd Michael Smurfit Graduate Business School','Nation'] = 'ie'

resumes.loc[resumes.schoolName=='University of Toronto Mississauga','school'] = 'University of Toronto Mississauga'
resumes.loc[resumes.schoolName=='University of Toronto Mississauga','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='Monash University Malaysia','school'] = 'Universiti Monash Malaysia'
resumes.loc[resumes.schoolName=='Monash University Malaysia','Nation'] = 'my'

resumes.loc[resumes.schoolName=='Imperial College Business School','school'] = 'Imperial College London'
resumes.loc[resumes.schoolName=='Imperial College Business School','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='Manchester Business School','school'] = 'The University of Manchester'
resumes.loc[resumes.schoolName=='Manchester Business School','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='Napier University','school'] = 'Edinburgh Napier University'
resumes.loc[resumes.schoolName=='Napier University','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='Yale','school'] = 'Yale University'
resumes.loc[resumes.schoolName=='Yale','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Budapest Business School','school'] = 'Budapesti Gazdasági Egyetem'
resumes.loc[resumes.schoolName=='Budapest Business School','Nation'] = 'hu'

resumes.loc[resumes.schoolName=='Royal Institute of Technology','school'] = 'KTH Royal Institute of Technology'
resumes.loc[resumes.schoolName=='Royal Institute of Technology','Nation'] = 'se'
resumes.loc[resumes.schoolName=='Royal Institute of Technology (Kth)','school'] = 'KTH Royal Institute of Technology'
resumes.loc[resumes.schoolName=='Royal Institute of Technology (Kth)','Nation'] = 'se'

resumes.loc[resumes.schoolName=='National Open University of Nigeria','school'] = 'National Open University of Nigeria'
resumes.loc[resumes.schoolName=='National Open University of Nigeria','Nation'] = 'ng'

resumes.loc[resumes.schoolName=='Thakur College of Science And Commerce','school'] = 'Thakur College of Science And Commerce'
resumes.loc[resumes.schoolName=='Thakur College of Science And Commerce','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Symbiosis Institute of Business Management','school'] = 'Symbiosis Institute of Business Management'
resumes.loc[resumes.schoolName=='Symbiosis Institute of Business Management','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Nitte Meenakshi Institute of Technology','school'] = 'Nitte Meenakshi Institute of Technology'
resumes.loc[resumes.schoolName=='Nitte Meenakshi Institute of Technology','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Reva Institute of Technology And Management','school'] = 'REVA University'
resumes.loc[resumes.schoolName=='Reva Institute of Technology And Management','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Uba Argentina','school'] = 'Universidad de Buenos Aires'
resumes.loc[resumes.schoolName=='Uba Argentina','Nation'] = 'ar'

resumes.loc[resumes.schoolName=='Uff - Universidade Federal Fluminense','school'] = 'Universidade Federal Fluminense'
resumes.loc[resumes.schoolName=='Uff - Universidade Federal Fluminense','Nation'] = 'br'

resumes.loc[resumes.schoolName=='Ufrj - Universidade Federal Do Rio De Janeiro','school'] = 'Universidade Federal do Rio de Janeiro'
resumes.loc[resumes.schoolName=='Ufrj - Universidade Federal Do Rio De Janeiro','Nation'] = 'br'
resumes.loc[resumes.schoolName=='Universidade Federal Do Rio De Janeiro (Ufrj)','school'] = 'Universidade Federal do Rio de Janeiro'
resumes.loc[resumes.schoolName=='Universidade Federal Do Rio De Janeiro (Ufrj)','Nation'] = 'br'

resumes.loc[resumes.schoolName=='Ufrgs','school'] = 'Universidade Federal do Rio Grande do Sul'
resumes.loc[resumes.schoolName=='Ufrgs','Nation'] = 'br'

resumes.loc[resumes.schoolName=='Umeå Universitet','school'] = 'Umeå University'
resumes.loc[resumes.schoolName=='Umeå Universitet','Nation'] = 'se'

resumes.loc[resumes.schoolName=='Ufscar','school'] = 'Universidade Federal de São Carlos'
resumes.loc[resumes.schoolName=='Ufscar','Nation'] = 'br'
resumes.loc[resumes.schoolName=='Ufscar - Universidade Federal De São Carlos','school'] = 'Universidade Federal de São Carlos'
resumes.loc[resumes.schoolName=='Ufscar - Universidade Federal De São Carlos','Nation'] = 'br'

resumes.loc[resumes.schoolName=='Rani Channamma University','school'] = 'Rani Channamma University, Belagavi'
resumes.loc[resumes.schoolName=='Rani Channamma University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Rani Durgavati University','school'] = 'Rani Durgavati Vishwavidyalaya'
resumes.loc[resumes.schoolName=='Rani Durgavati University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Jawaharlal Nehru Technological University Hyderabad','school'] = 'Jawaharlal Nehru Technological University'
resumes.loc[resumes.schoolName=='Jawaharlal Nehru Technological University Hyderabad','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Rady School of Management','school'] = 'University of California San Diego'
resumes.loc[resumes.schoolName=='Rady School of Management','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Oradea','school'] = 'Universitatea din Oradea'
resumes.loc[resumes.schoolName=='University of Oradea','Nation'] = 'ro'

resumes.loc[resumes.schoolName=='University of Passau','school'] = 'Universität Passau'
resumes.loc[resumes.schoolName=='University of Passau','Nation'] = 'de'

resumes.loc[resumes.schoolName=='University of Oklahoma College of Law','school'] = 'University of Oklahoma-Norman Campus'
resumes.loc[resumes.schoolName=='University of Oklahoma College of Law','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Oklahoma, Norman','school'] = 'University of Oklahoma-Norman Campus'
resumes.loc[resumes.schoolName=='University of Oklahoma, Norman','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Uc Merced','school'] = 'University of California-Merced'
resumes.loc[resumes.schoolName=='Uc Merced','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Uc Riverside','school'] = 'University of California-Riverside'
resumes.loc[resumes.schoolName=='Uc Riverside','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Rawls College of Business, Texas Tech University','school'] = 'Texas Tech University'
resumes.loc[resumes.schoolName=='Rawls College of Business, Texas Tech University','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Texas Tech University - Rawls College of Business','school'] = 'Texas Tech University'
resumes.loc[resumes.schoolName=='Texas Tech University - Rawls College of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Texas Tech University School of Law','school'] = 'Texas Tech University'
resumes.loc[resumes.schoolName=='Texas Tech University School of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Rensselaer','school'] = 'Rensselaer Polytechnic Institute'
resumes.loc[resumes.schoolName=='Rensselaer','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Central Missouri (Ucm)','school'] = 'University of Central Missouri'
resumes.loc[resumes.schoolName=='University of Central Missouri (Ucm)','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Harvard Medical School','school'] = 'Harvard University'
resumes.loc[resumes.schoolName=='Harvard Medical School','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Harvard Graduate School of Education','school'] = 'Harvard University'
resumes.loc[resumes.schoolName=='Harvard Graduate School of Education','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Harvard University Graduate School of Design','school'] = 'Harvard University'
resumes.loc[resumes.schoolName=='Harvard University Graduate School of Design','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Widener University School of Law','school'] = 'Widener University'
resumes.loc[resumes.schoolName=='Widener University School of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Texas Tech','school'] = 'Texas Tech University'
resumes.loc[resumes.schoolName=='Texas Tech','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Ucla Anderson','school'] = 'University of California-Los Angeles'
resumes.loc[resumes.schoolName=='Ucla Anderson','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Anderson School of Management','school'] = 'University of California-Los Angeles'
resumes.loc[resumes.schoolName=='Anderson School of Management','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Connecticut, School of Business','school'] = 'University of Connecticut'
resumes.loc[resumes.schoolName=='University of Connecticut, School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Vistula University','school'] = 'Vistula University'
resumes.loc[resumes.schoolName=='Vistula University','Nation'] = 'pl'

resumes.loc[resumes.schoolName=='Virginia Polytechnic And State University','school'] = 'Virginia Polytechnic Institute and State University'
resumes.loc[resumes.schoolName=='Virginia Polytechnic And State University','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Virginia Polytechnic Institute','school'] = 'Virginia Polytechnic Institute and State University'
resumes.loc[resumes.schoolName=='Virginia Polytechnic Institute','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Virginia Tech University','school'] = 'Virginia Polytechnic Institute and State University'
resumes.loc[resumes.schoolName=='Virginia Tech University','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Guru Jambeshwar University','school'] = 'Guru Jambheshwar University of Science and Technology'
resumes.loc[resumes.schoolName=='Guru Jambeshwar University','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Guru Jambheshwar University','school'] = 'Guru Jambheshwar University of Science and Technology'
resumes.loc[resumes.schoolName=='Guru Jambheshwar University','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Guru Jambheshwar University of Science & Technology','school'] = 'Guru Jambheshwar University of Science and Technology'
resumes.loc[resumes.schoolName=='Guru Jambheshwar University of Science & Technology','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Guru Jambheshwar University of Science And Technology','school'] = 'Guru Jambheshwar University of Science and Technology'
resumes.loc[resumes.schoolName=='Guru Jambheshwar University of Science And Technology','Nation'] = 'in'

resumes.loc[resumes.schoolName=='H.N.B Garhwal University','school'] = 'Hemwati Nandan Bahuguna Garhwal University'
resumes.loc[resumes.schoolName=='H.N.B Garhwal University','Nation'] = 'in'
resumes.loc[resumes.schoolName=='H.N.B. Garhwal University','school'] = 'Hemwati Nandan Bahuguna Garhwal University'
resumes.loc[resumes.schoolName=='H.N.B. Garhwal University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Haaga-Helia University of Applied Sciences','school'] = 'Haaga-Helia University of Applied Sciences'
resumes.loc[resumes.schoolName=='Haaga-Helia University of Applied Sciences','Nation'] = 'fi'
resumes.loc[resumes.schoolName=='Helia University of Applied Sciences','school'] = 'Haaga-Helia University of Applied Sciences'
resumes.loc[resumes.schoolName=='Helia University of Applied Sciences','Nation'] = 'fi'

resumes.loc[resumes.schoolName=='Benjamin N. Cardozo School of Law','school'] = 'Yeshiva University'
resumes.loc[resumes.schoolName=='Benjamin N. Cardozo School of Law','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Yeshiva University, Sy Syms School of Business','school'] = 'Yeshiva University'
resumes.loc[resumes.schoolName=='Yeshiva University, Sy Syms School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='York College of Pa','school'] = 'York College of Pennsylvania'
resumes.loc[resumes.schoolName=='York College of Pa','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Hogeschool Van Utrecht','school'] = 'Hogeschool Utrecht'
resumes.loc[resumes.schoolName=='Hogeschool Van Utrecht','Nation'] = 'nl'

resumes.loc[resumes.schoolName=='Han University of Applied Sciences','school'] = 'Hogeschool van Arnhem en Nijmegen'
resumes.loc[resumes.schoolName=='Han University of Applied Sciences','Nation'] = 'nl'
resumes.loc[resumes.schoolName=='Han University of Applied Sciences /Hogeschool Van Arnhem En Nijmegen (Han)','school'] = 'Hogeschool van Arnhem en Nijmegen'
resumes.loc[resumes.schoolName=='Han University of Applied Sciences /Hogeschool Van Arnhem En Nijmegen (Han)','Nation'] = 'nl'

resumes.loc[resumes.schoolName=='Hanze University of Applied Sciences','school'] = 'Hanzehogeschool Groningen'
resumes.loc[resumes.schoolName=='Hanze University of Applied Sciences','Nation'] = 'nl'

resumes.loc[resumes.schoolName=='Loyola Law School','school'] = 'Loyola Marymount University'
resumes.loc[resumes.schoolName=='Loyola Law School','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Loyola Law School','school'] = 'Loyola Marymount University'
resumes.loc[resumes.schoolName=='Loyola Law School','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Florida International University - College of Business','school'] = 'Florida International University'
resumes.loc[resumes.schoolName=='Florida International University - College of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Uni. Salford','school'] = 'University of Salford'
resumes.loc[resumes.schoolName=='Uni. Salford','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='C. T. Bauer College of Business, University of Houston','school'] = 'University of Houston'
resumes.loc[resumes.schoolName=='C. T. Bauer College of Business, University of Houston','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Houston Law Center','school'] = 'University of Houston'
resumes.loc[resumes.schoolName=='University of Houston Law Center','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Bits, Pilani','school'] = 'Birla Institute of Technology and Science'
resumes.loc[resumes.schoolName=='Bits, Pilani','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Indian Institute of Management Lucknow','school'] = 'Indian Institute of Management Lucknow'
resumes.loc[resumes.schoolName=='Indian Institute of Management Lucknow','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Ggsip University','school'] = 'Guru Gobind Singh Indraprastha University'
resumes.loc[resumes.schoolName=='Ggsip University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Psg College of Arts And Science','school'] = 'PSG College of Arts And Science'
resumes.loc[resumes.schoolName=='Psg College of Arts And Science','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Swinburne University','school'] = 'Swinburne University of Technology'
resumes.loc[resumes.schoolName=='Swinburne University','Nation'] = 'au'

resumes.loc[resumes.schoolName=='Ubc Sauder School of Business','school'] = 'The University of British Columbia'
resumes.loc[resumes.schoolName=='Ubc Sauder School of Business','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='Shanghai Jiaotong University','school'] = 'Shanghai Jiao Tong University'
resumes.loc[resumes.schoolName=='Shanghai Jiaotong University','Nation'] = 'cn'

resumes.loc[resumes.schoolName=='Faculdades Metropolitanas Unidas','school'] = 'Centro Universitário das Faculdades Metropolitanas Unidas'
resumes.loc[resumes.schoolName=='Faculdades Metropolitanas Unidas','Nation'] = 'br'

resumes.loc[resumes.schoolName=='Erasmus University','school'] = 'Erasmus Universiteit Rotterdam'
resumes.loc[resumes.schoolName=='Erasmus University','Nation'] = 'nl'
resumes.loc[resumes.schoolName=='Rotterdam School of Management','school'] = 'Erasmus Universiteit Rotterdam'
resumes.loc[resumes.schoolName=='Rotterdam School of Management','Nation'] = 'nl'

resumes.loc[resumes.schoolName=='University of Wroclaw','school'] = 'Uniwersytet Wroclawski'
resumes.loc[resumes.schoolName=='University of Wroclaw','Nation'] = 'pl'
resumes.loc[resumes.schoolName=='University of Wrocław','school'] = 'Uniwersytet Wroclawski'
resumes.loc[resumes.schoolName=='University of Wrocław','Nation'] = 'pl'
resumes.loc[resumes.schoolName=='Wroclaw University','school'] = 'Uniwersytet Wroclawski'
resumes.loc[resumes.schoolName=='Wroclaw University','Nation'] = 'pl'

resumes.loc[resumes.schoolName=='Berlin School of Economics And Law','school'] = 'Hochschule für Wirtschaft und Recht Berlin'
resumes.loc[resumes.schoolName=='Berlin School of Economics And Law','Nation'] = 'de'

resumes.loc[resumes.schoolName=='East China University of Political Science And Law','school'] = 'East China University of Political Science And Law'
resumes.loc[resumes.schoolName=='East China University of Political Science And Law','Nation'] = 'cn'

resumes.loc[resumes.schoolName=='Nova School of Business And Economics','school'] = 'Universidade Nova de Lisboa'
resumes.loc[resumes.schoolName=='Nova School of Business And Economics','Nation'] = 'pt'

resumes.loc[resumes.schoolName=='Cornell University, College of Engineering','school'] = 'Cornell University'
resumes.loc[resumes.schoolName=='Cornell University, College of Engineering','Nation'] = 'us'

resumes.loc[resumes.schoolName=='American University, Kogod School of Business','school'] = 'American University'
resumes.loc[resumes.schoolName=='American University, Kogod School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='American University, School of International Service','school'] = 'American University'
resumes.loc[resumes.schoolName=='American University, School of International Service','Nation'] = 'us'

resumes.loc[resumes.schoolName=='W.P. Carey School of Business, Arizona State University','school'] = 'Arizona State University-Tempe'
resumes.loc[resumes.schoolName=='W.P. Carey School of Business, Arizona State University','Nation'] = 'us'
resumes.loc[resumes.schoolName=='W.P. Carey School of Business At Arizona State University','school'] = 'Arizona State University-Tempe'
resumes.loc[resumes.schoolName=='W.P. Carey School of Business At Arizona State University','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Babson College, F.W. Olin Graduate School of Business','school'] = 'Babson College'
resumes.loc[resumes.schoolName=='Babson College, F.W. Olin Graduate School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='New York University Tandon School of Engineering','school'] = 'New York University'
resumes.loc[resumes.schoolName=='New York University Tandon School of Engineering','Nation'] = 'us'

resumes.loc[resumes.schoolName=='George Mason University Fairfax','school'] = 'George Mason University'
resumes.loc[resumes.schoolName=='George Mason University Fairfax','Nation'] = 'us'

resumes.loc[resumes.schoolName=='State University of New York At Binghamton','school'] = 'Binghamton University'
resumes.loc[resumes.schoolName=='State University of New York At Binghamton','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Baruch College Zicklin School of Business','school'] = 'Baruch College'
resumes.loc[resumes.schoolName=='Baruch College Zicklin School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Columbia Law School','school'] = 'Columbia University in the City of New York'
resumes.loc[resumes.schoolName=='Columbia Law School','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Columbia University Graduate School of Business','school'] = 'Columbia University in the City of New York'
resumes.loc[resumes.schoolName=='Columbia University Graduate School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Seattle University School of Law','school'] = 'Seattle University'
resumes.loc[resumes.schoolName=='Seattle University School of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Pepperdine University, Graziadio School of Business And Management','school'] = 'Pepperdine University'
resumes.loc[resumes.schoolName=='Pepperdine University, Graziadio School of Business And Management','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Pace University, Seidenberg School of Computer Science And Information Systems','school'] = 'Pace University-New York'
resumes.loc[resumes.schoolName=='Pace University, Seidenberg School of Computer Science And Information Systems','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Pace University','school'] = 'Pace University-New York'
resumes.loc[resumes.schoolName=='Pace University','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Pace University, Seidenberg School of Csis','school'] = 'Pace University-New York'
resumes.loc[resumes.schoolName=='Pace University, Seidenberg School of Csis','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Michigan Law School','school'] = 'University of Michigan-Ann Arbor'
resumes.loc[resumes.schoolName=='University of Michigan Law School','Nation'] = 'us'

resumes.loc[resumes.schoolName=='N.C. State','school'] = 'North Carolina State University at Raleigh'
resumes.loc[resumes.schoolName=='N.C. State','Nation'] = 'us'
resumes.loc[resumes.schoolName=='North Carolina State','school'] = 'North Carolina State University at Raleigh'
resumes.loc[resumes.schoolName=='North Carolina State','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Western Michigan University - Haworth College of Business','school'] = 'Western Michigan University'
resumes.loc[resumes.schoolName=='Western Michigan University - Haworth College of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='West University of Timisoara','school'] = 'West University of Timisoara'
resumes.loc[resumes.schoolName=='West University of Timisoara','Nation'] = 'ro'

resumes.loc[resumes.schoolName=='West Texas A&M','school'] = 'West Texas A & M University'
resumes.loc[resumes.schoolName=='West Texas A&M','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Università Di Genova','school'] = 'University of Genoa'
resumes.loc[resumes.schoolName=='Università Di Genova','Nation'] = 'it'

resumes.loc[resumes.schoolName=='University of Virginia Darden School of Business','school'] = 'University of Virginia-Main Campus'
resumes.loc[resumes.schoolName=='University of Virginia Darden School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Virginia, School of Engineering And Applied Science','school'] = 'University of Virginia-Main Campus'
resumes.loc[resumes.schoolName=='University of Virginia, School of Engineering And Applied Science','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Martin J. Whitman School of Management','school'] = 'Syracuse University'
resumes.loc[resumes.schoolName=='Martin J. Whitman School of Management','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Syracuse University - Martin J. Whitman School of Management','school'] = 'Syracuse University'
resumes.loc[resumes.schoolName=='Syracuse University - Martin J. Whitman School of Management','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Syracuse University, Martin J. Whitman School of Management','school'] = 'Syracuse University'
resumes.loc[resumes.schoolName=='Syracuse University, Martin J. Whitman School of Management','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Whitman School of Management','school'] = 'Syracuse University'
resumes.loc[resumes.schoolName=='Whitman School of Management','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Syracuse University, Whitman School of Management','school'] = 'Syracuse University'
resumes.loc[resumes.schoolName=='Syracuse University, Whitman School of Management','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Richard Stockton College','school'] = 'Stockton University'
resumes.loc[resumes.schoolName=='Richard Stockton College','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Richard Stockton College of New Jersey','school'] = 'Stockton University'
resumes.loc[resumes.schoolName=='Richard Stockton College of New Jersey','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Richard Stockton University','school'] = 'Stockton University'
resumes.loc[resumes.schoolName=='Richard Stockton University','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Russian State University For The Humanities','school'] = 'Russian State University For The Humanities'
resumes.loc[resumes.schoolName=='Russian State University For The Humanities','Nation'] = 'ru'

resumes.loc[resumes.schoolName=='Rmit','school'] = 'RMIT University'
resumes.loc[resumes.schoolName=='Rmit','Nation'] = 'au'
resumes.loc[resumes.schoolName=='Royal Melbourne Institute of Technology (Rmit)','school'] = 'RMIT University'
resumes.loc[resumes.schoolName=='Royal Melbourne Institute of Technology (Rmit)','Nation'] = 'au'
resumes.loc[resumes.schoolName=='Royal Melbourne Institute of Technology University','school'] = 'RMIT University'
resumes.loc[resumes.schoolName=='Royal Melbourne Institute of Technology University','Nation'] = 'au'

resumes.loc[resumes.schoolName=='University of San Francisco School of Law','school'] = 'University of San Francisco'
resumes.loc[resumes.schoolName=='University of San Francisco School of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Richmond School of Law','school'] = 'University of Richmond'
resumes.loc[resumes.schoolName=='University of Richmond School of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Gdańsk','school'] = 'Uniwersytet Gdanski'
resumes.loc[resumes.schoolName=='University of Gdańsk','Nation'] = 'pl'

resumes.loc[resumes.schoolName=='University of Florida, Warrington College of Business','school'] = 'University of Florida'
resumes.loc[resumes.schoolName=='University of Florida, Warrington College of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Florida - Warrington College of Business','school'] = 'University of Florida'
resumes.loc[resumes.schoolName=='University of Florida - Warrington College of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Florida Levin College of Law','school'] = 'University of Florida'
resumes.loc[resumes.schoolName=='University of Florida Levin College of Law','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Florida, Hough Graduate School of Business','school'] = 'University of Florida'
resumes.loc[resumes.schoolName=='University of Florida, Hough Graduate School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Depaul University, Kellstadt Graduate School of Business','school'] = 'DePaul University'
resumes.loc[resumes.schoolName=='Depaul University, Kellstadt Graduate School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Kellstadt Graduate School of Business','school'] = 'DePaul University'
resumes.loc[resumes.schoolName=='Kellstadt Graduate School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Depaul University - Charles H. Kellstadt Graduate School of Business','school'] = 'DePaul University'
resumes.loc[resumes.schoolName=='Depaul University - Charles H. Kellstadt Graduate School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Minnesota - Carlson School of Management','school'] = 'University of Minnesota-Twin Cities'
resumes.loc[resumes.schoolName=='University of Minnesota - Carlson School of Management','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Solvay Brussels School of Economics And Management','school'] = 'Université Libre de Bruxelles'
resumes.loc[resumes.schoolName=='Solvay Brussels School of Economics And Management','Nation'] = 'be'

resumes.loc[resumes.schoolName=='Nanyang Business School, Nanyang Technological University','school'] = 'Nanyang Technological University'
resumes.loc[resumes.schoolName=='Nanyang Business School, Nanyang Technological University','Nation'] = 'sg'
resumes.loc[resumes.schoolName=='Nanyang Technological University, Singapore','school'] = 'Nanyang Technological University'
resumes.loc[resumes.schoolName=='Nanyang Technological University, Singapore','Nation'] = 'sg'

resumes.loc[resumes.schoolName=='Schulich School of Business - York University','school'] = 'York University'
resumes.loc[resumes.schoolName=='Schulich School of Business - York University','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='Vilniaus Universitetas / Vilnius University','school'] = 'Vilnius University'
resumes.loc[resumes.schoolName=='Vilniaus Universitetas / Vilnius University','Nation'] = 'lt'

resumes.loc[resumes.schoolName=='Grenoble Graduate School of Business','school'] = 'Grenoble École de Management'
resumes.loc[resumes.schoolName=='Grenoble Graduate School of Business','Nation'] = 'fr'
resumes.loc[resumes.schoolName=='Grenoble École De Management','school'] = 'Grenoble École de Management'
resumes.loc[resumes.schoolName=='Grenoble École De Management','Nation'] = 'fr'
    
resumes.loc[resumes.schoolName=='Republic Polytechnic','school'] = 'Republic Polytechnic'
resumes.loc[resumes.schoolName=='Republic Polytechnic','Nation'] = 'sg'
    
resumes.loc[resumes.schoolName=='Icfai Business School','school'] = 'IBS Hyderabad'
resumes.loc[resumes.schoolName=='Icfai Business School','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Ibs Hyderabad','school'] = 'IBS Hyderabad'
resumes.loc[resumes.schoolName=='Ibs Hyderabad','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Icfai Business School, Hyderabad','school'] = 'IBS Hyderabad'
resumes.loc[resumes.schoolName=='Icfai Business School, Hyderabad','Nation'] = 'in'
    
resumes.loc[resumes.schoolName=='Igbinedion University','school'] = 'Igbinedion University Okada'
resumes.loc[resumes.schoolName=='Igbinedion University','Nation'] = 'ng'

resumes.loc[resumes.schoolName=='Iiit Allahabad','school'] = 'Indian Institute of Information Technology Allahabad'
resumes.loc[resumes.schoolName=='Iiit Allahabad','Nation'] = 'in'
    
resumes.loc[resumes.schoolName=='Iit (Bhu) Varanasi','school'] = 'Indian Institute of Technology, BHU'
resumes.loc[resumes.schoolName=='Iit (Bhu) Varanasi','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Iit Bhu','school'] = 'Indian Institute of Technology, BHU'
resumes.loc[resumes.schoolName=='Iit Bhu','Nation'] = 'in'

resumes.loc[resumes.schoolName=='South Gujarat University','school'] = 'Veer Narmad South Gujarat University'
resumes.loc[resumes.schoolName=='South Gujarat University','Nation'] = 'in'
    
resumes.loc[resumes.schoolName=='Welingkar Institute of Management','school'] = 'Welingkar Institute of Management'
resumes.loc[resumes.schoolName=='Welingkar Institute of Management','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Welingkar Institute','school'] = 'Welingkar Institute of Management'
resumes.loc[resumes.schoolName=='Welingkar Institute','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Welingkar Institute of Management Development & Research','school'] = 'Welingkar Institute of Management'
resumes.loc[resumes.schoolName=='Welingkar Institute of Management Development & Research','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Welingkar Institute of Management Development And Research','school'] = 'Welingkar Institute of Management'
resumes.loc[resumes.schoolName=='Welingkar Institute of Management Development And Research','Nation'] = 'in'
resumes.loc[resumes.schoolName=="Welingkar'S Institute of Management",'school'] = 'Welingkar Institute of Management'
resumes.loc[resumes.schoolName=="Welingkar'S Institute of Management",'Nation'] = 'in'
resumes.loc[resumes.schoolName=='Welingkar Institute of Management Studies','school'] = 'Welingkar Institute of Management'
resumes.loc[resumes.schoolName=='Welingkar Institute of Management Studies','Nation'] = 'in'
    
resumes.loc[resumes.schoolName=='Akademia Leona Koźmińskiego - Kozminski University','school'] = 'Akademia Leona Kozminskiego'
resumes.loc[resumes.schoolName=='Akademia Leona Koźmińskiego - Kozminski University','Nation'] = 'pl'    

resumes.loc[resumes.schoolName=='Akademia Górniczo-Hutnicza W Krakowie','school'] = 'AGH University of Science and Technology'
resumes.loc[resumes.schoolName=='Akademia Górniczo-Hutnicza W Krakowie','Nation'] = 'pl'    

resumes.loc[resumes.schoolName=='Pesit','school'] = 'PES University'
resumes.loc[resumes.schoolName=='Pesit','Nation'] = 'in'    
    
resumes.loc[resumes.schoolName=='Mälardalens Högskola','school'] = 'Mälardalen University'
resumes.loc[resumes.schoolName=='Mälardalens Högskola','Nation'] = 'se'    

resumes.loc[resumes.schoolName=='Mannheim Business School','school'] = 'Universität Mannheim'
resumes.loc[resumes.schoolName=='Mannheim Business School','Nation'] = 'de'    
    
resumes.loc[resumes.schoolName=="Xi'An International Studies University",'school'] = "Xi'An International Studies University"
resumes.loc[resumes.schoolName=="Xi'An International Studies University",'Nation'] = 'cn'    
    
resumes.loc[resumes.schoolName=='College of Saint Benilde','school'] = 'De La Salle-College of Saint Benilde'
resumes.loc[resumes.schoolName=='College of Saint Benilde','Nation'] = 'ph'    
    
resumes.loc[resumes.schoolName=='Manipal University Jaipur','school'] = 'Manipal University Jaipur'
resumes.loc[resumes.schoolName=='Manipal University Jaipur','Nation'] = 'in'    
    
resumes.loc[resumes.schoolName=='Sri Krishna College of Engineering And Technology','school'] = 'Sri Krishna College of Engineering And Technology'
resumes.loc[resumes.schoolName=='Sri Krishna College of Engineering And Technology','Nation'] = 'in'    
    
resumes.loc[resumes.schoolName=='M.G University','school'] = 'Mahatma Gandhi University'
resumes.loc[resumes.schoolName=='M.G University','Nation'] = 'in'    

resumes.loc[resumes.schoolName=='Kalasalingam University','school'] = 'Kalasalingam Academy of Research and Education'
resumes.loc[resumes.schoolName=='Kalasalingam University','Nation'] = 'in'    

resumes.loc[resumes.schoolName=='Xavier Institute of Management','school'] = 'Xavier Institute of Management, Bhubaneswar'
resumes.loc[resumes.schoolName=='Xavier Institute of Management','Nation'] = 'in'    
resumes.loc[resumes.schoolName=='Xavier Institute of Management, Bhubaneswar','school'] = 'Xavier Institute of Management, Bhubaneswar'
resumes.loc[resumes.schoolName=='Xavier Institute of Management, Bhubaneswar','Nation'] = 'in'    

resumes.loc[resumes.schoolName=='Wwu Münster - Münster University','school'] = 'University of Münster'
resumes.loc[resumes.schoolName=='Wwu Münster - Münster University','Nation'] = 'de'    

resumes.loc[resumes.schoolName=='Walchand College of Engineering','school'] = 'Walchand College of Engineering'
resumes.loc[resumes.schoolName=='Walchand College of Engineering','Nation'] = 'in'    

resumes.loc[resumes.schoolName=='Wroclaw University of Science And Technology','school'] = 'Politechnika Wroclawska'
resumes.loc[resumes.schoolName=='Wroclaw University of Science And Technology','Nation'] = 'pl'
resumes.loc[resumes.schoolName=='Wrocław University of Science And Technology','school'] = 'Politechnika Wroclawska'
resumes.loc[resumes.schoolName=='Wrocław University of Science And Technology','Nation'] = 'pl'
resumes.loc[resumes.schoolName=='Wroclaw University of Technology','school'] = 'Politechnika Wroclawska'
resumes.loc[resumes.schoolName=='Wroclaw University of Technology','Nation'] = 'pl'
resumes.loc[resumes.schoolName=='Wrocław University of Technology','school'] = 'Politechnika Wroclawska'
resumes.loc[resumes.schoolName=='Wrocław University of Technology','Nation'] = 'pl'

resumes.loc[resumes.schoolName=='Wuhan University of Science And Technology','school'] = 'Wuhan University of Science And Technology'
resumes.loc[resumes.schoolName=='Wuhan University of Science And Technology','Nation'] = 'cn'

resumes.loc[resumes.schoolName=='Istanbul Commerce University','school'] = 'Istanbul Ticaret Üniversitesi'
resumes.loc[resumes.schoolName=='Istanbul Commerce University','Nation'] = 'tr'

resumes.loc[resumes.schoolName=="Institut D'Etudes Politiques De Paris",'school'] = 'Sciences Po'
resumes.loc[resumes.schoolName=="Institut D'Etudes Politiques De Paris",'Nation'] = 'fr'

resumes.loc[resumes.schoolName=="Saint-Petersburg State University",'school'] = 'Saint Petersburg University'
resumes.loc[resumes.schoolName=="Saint-Petersburg State University",'Nation'] = 'ru'

resumes.loc[resumes.schoolName=='Unesp','school'] = 'Universidade Estadual Paulista'
resumes.loc[resumes.schoolName=='Unesp','Nation'] = 'br'

resumes.loc[resumes.schoolName=='Uade','school'] = 'Universidad Argentina de la Empresa'
resumes.loc[resumes.schoolName=='Uade','Nation'] = 'ar'
resumes.loc[resumes.schoolName=='Universidad Argentina De La Empresa (Uade)','school'] = 'Universidad Argentina de la Empresa'
resumes.loc[resumes.schoolName=='Universidad Argentina De La Empresa (Uade)','Nation'] = 'ar'

resumes.loc[resumes.schoolName=='Nit Trichy','school'] = 'National Institute of Technology, Tiruchirappalli'
resumes.loc[resumes.schoolName=='Nit Trichy','Nation'] = 'in'    

resumes.loc[resumes.schoolName=='Scsvmv University','school'] = 'Sri Chandrasekharendra Saraswathi Viswa Mahavidyalaya'
resumes.loc[resumes.schoolName=='Scsvmv University','Nation'] = 'in'    

resumes.loc[resumes.schoolName=='Sathyabama University','school'] = 'Sathyabama Institute of Science and Technology'
resumes.loc[resumes.schoolName=='Sathyabama University','Nation'] = 'in'    
resumes.loc[resumes.schoolName=='Sathyabama University - Chennai','school'] = 'Sathyabama Institute of Science and Technology'
resumes.loc[resumes.schoolName=='Sathyabama University - Chennai','Nation'] = 'in'    
resumes.loc[resumes.schoolName=='Sathyabama University, Chennai','school'] = 'Sathyabama Institute of Science and Technology'
resumes.loc[resumes.schoolName=='Sathyabama University, Chennai','Nation'] = 'in'    
resumes.loc[resumes.schoolName=='Satyabhama University','school'] = 'Sathyabama Institute of Science and Technology'
resumes.loc[resumes.schoolName=='Satyabhama University','Nation'] = 'in'    

resumes.loc[resumes.schoolName=='Bharath University','school'] = 'Bharath Institute of Higher Education and Research'
resumes.loc[resumes.schoolName=='Bharath University','Nation'] = 'in'
    
resumes.loc[resumes.schoolName=='University of Buea','school'] = 'University of Buea'
resumes.loc[resumes.schoolName=='University of Buea','Nation'] = 'cm'
    
resumes.loc[resumes.schoolName=='Saïd Business School, University of Oxford','school'] = 'University of Oxford'
resumes.loc[resumes.schoolName=='Saïd Business School, University of Oxford','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='Saxion University of Applied Sciences','school'] = 'Saxion Hogescholen'
resumes.loc[resumes.schoolName=='Saxion University of Applied Sciences','Nation'] = 'nl'

resumes.loc[resumes.schoolName=='Sauder School of Business','school'] = 'The University of British Columbia'
resumes.loc[resumes.schoolName=='Sauder School of Business','Nation'] = 'ca'
resumes.loc[resumes.schoolName=='Sauder School of Business, University of British Columbia','school'] = 'The University of British Columbia'
resumes.loc[resumes.schoolName=='Sauder School of Business, University of British Columbia','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='Thames Valley University','school'] = 'University of West London'
resumes.loc[resumes.schoolName=='Thames Valley University','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='Uxbridge College','school'] = 'Uxbridge College'
resumes.loc[resumes.schoolName=='Uxbridge College','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='University of Newcastle Upon Tyne','school'] = 'Newcastle University'
resumes.loc[resumes.schoolName=='University of Newcastle Upon Tyne','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='Shandong University of Finance And Economics','school'] = 'Shandong University of Finance And Economics'
resumes.loc[resumes.schoolName=='Shandong University of Finance And Economics','Nation'] = 'cn'

resumes.loc[resumes.schoolName=='Lancaster University Management School','school'] = 'Lancaster University'
resumes.loc[resumes.schoolName=='Lancaster University Management School','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='Bandung Institute of Technology','school'] = 'Institut Teknologi Bandung'
resumes.loc[resumes.schoolName=='Bandung Institute of Technology','Nation'] = 'id'

resumes.loc[resumes.schoolName=='Catholic University','school'] = 'Catholic University of America'
resumes.loc[resumes.schoolName=='Catholic University','Nation'] = 'us'
resumes.loc[resumes.schoolName=='The Catholic University of America, Columbus School of Law','school'] = 'Catholic University of America'
resumes.loc[resumes.schoolName=='The Catholic University of America, Columbus School of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Sfsu','school'] = 'San Francisco State University'
resumes.loc[resumes.schoolName=='Sfsu','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Sf State University','school'] = 'San Francisco State University'
resumes.loc[resumes.schoolName=='Sf State University','Nation'] = 'us'
resumes.loc[resumes.schoolName=='San Francisco State University (Sfsu)','school'] = 'San Francisco State University'
resumes.loc[resumes.schoolName=='San Francisco State University (Sfsu)','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Smeal College of Business','school'] = 'Pennsylvania State University-Main Campus'
resumes.loc[resumes.schoolName=='Smeal College of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Eli Broad College of Business','school'] = 'Michigan State University'
resumes.loc[resumes.schoolName=='Eli Broad College of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Boston College Carroll School of Management','school'] = 'Boston College'
resumes.loc[resumes.schoolName=='Boston College Carroll School of Management','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Boston College, Carroll School of Management','school'] = 'Boston College'
resumes.loc[resumes.schoolName=='Boston College, Carroll School of Management','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Boston College, Morrissey College of Arts And Sciences','school'] = 'Boston College'
resumes.loc[resumes.schoolName=='Boston College, Morrissey College of Arts And Sciences','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Boston University College of Arts And Sciences','school'] = 'Boston University'
resumes.loc[resumes.schoolName=='Boston University College of Arts And Sciences','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Boston University Graduate School of Management','school'] = 'Boston University'
resumes.loc[resumes.schoolName=='Boston University Graduate School of Management','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Boston University, College of Communication','school'] = 'Boston University'
resumes.loc[resumes.schoolName=='Boston University, College of Communication','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Washburn University School of Law','school'] = 'Washburn University'
resumes.loc[resumes.schoolName=='Washburn University School of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Carabobo','school'] = 'Universidad de Carabobo'
resumes.loc[resumes.schoolName=='University of Carabobo','Nation'] = 've'

resumes.loc[resumes.schoolName=='Rafael Urdaneta University','school'] = 'Universidad Rafael Urdaneta'
resumes.loc[resumes.schoolName=='Rafael Urdaneta University','Nation'] = 've'

resumes.loc[resumes.schoolName=='University of Stockholm','school'] = 'Stockholms universitet'
resumes.loc[resumes.schoolName=='University of Stockholm','Nation'] = 'se'
resumes.loc[resumes.schoolName=='Stockholm Business School','school'] = 'Stockholms universitet'
resumes.loc[resumes.schoolName=='Stockholm Business School','Nation'] = 'se'
resumes.loc[resumes.schoolName=='Stockholm Uni.','school'] = 'Stockholms universitet'
resumes.loc[resumes.schoolName=='Stockholm Uni.','Nation'] = 'se'

resumes.loc[resumes.schoolName=='Universidade De Évora','school'] = 'University of Évora'
resumes.loc[resumes.schoolName=='Universidade De Évora','Nation'] = 'pt'

resumes.loc[resumes.schoolName=='Federal University of Agriculture Abeokuta','school'] = 'Federal University of Agriculture, Abeokuta'
resumes.loc[resumes.schoolName=='Federal University of Agriculture Abeokuta','Nation'] = 'ng'

resumes.loc[resumes.schoolName=='Università Degli Studi Di Bologna','school'] = 'University of Bologna'
resumes.loc[resumes.schoolName=='Università Degli Studi Di Bologna','Nation'] = 'it'
resumes.loc[resumes.schoolName=='Bologna University','school'] = 'University of Bologna'
resumes.loc[resumes.schoolName=='Bologna University','Nation'] = 'it'
resumes.loc[resumes.schoolName=='Bologna Business School','school'] = 'University of Bologna'
resumes.loc[resumes.schoolName=='Bologna Business School','Nation'] = 'it'

resumes.loc[resumes.schoolName=='Università Degli Studi Di Brescia','school'] = 'University of Brescia'
resumes.loc[resumes.schoolName=='Università Degli Studi Di Brescia','Nation'] = 'it'

resumes.loc[resumes.schoolName=='Università Degli Studi Di Bari Aldo Moro','school'] = 'University of Bari'
resumes.loc[resumes.schoolName=='Università Degli Studi Di Bari Aldo Moro','Nation'] = 'it'

resumes.loc[resumes.schoolName=='Università Degli Studi Di Ferrara','school'] = 'University of Ferrara'
resumes.loc[resumes.schoolName=='Università Degli Studi Di Ferrara','Nation'] = 'it'

resumes.loc[resumes.schoolName=='Università Degli Studi Di Messina','school'] = 'University of Messina'
resumes.loc[resumes.schoolName=='Università Degli Studi Di Messina','Nation'] = 'it'

resumes.loc[resumes.schoolName=='Università Degli Studi Di Roma Tor Vergata','school'] = 'University of Rome Tor Vergata'
resumes.loc[resumes.schoolName=='Università Degli Studi Di Roma Tor Vergata','Nation'] = 'it'
resumes.loc[resumes.schoolName=='Università Di Roma Tor Vergata','school'] = 'University of Rome Tor Vergata'
resumes.loc[resumes.schoolName=='Università Di Roma Tor Vergata','Nation'] = 'it'

resumes.loc[resumes.schoolName=='Università Degli Studi Di Udine','school'] = 'University of Udine'
resumes.loc[resumes.schoolName=='Università Degli Studi Di Udine','Nation'] = 'it'

resumes.loc[resumes.schoolName=='Università Di Torino','school'] = 'University of Turin'
resumes.loc[resumes.schoolName=='Università Di Torino','Nation'] = 'it'

resumes.loc[resumes.schoolName=='Università Del Salento','school'] = 'University of Salento'
resumes.loc[resumes.schoolName=='Università Del Salento','Nation'] = 'it'

resumes.loc[resumes.schoolName=='Università Della Calabria','school'] = 'University of Calabria'
resumes.loc[resumes.schoolName=='Università Della Calabria','Nation'] = 'it'

resumes.loc[resumes.schoolName=='Ipade Business School','school'] = 'Universidad Panamericana'
resumes.loc[resumes.schoolName=='Ipade Business School','Nation'] = 'mx'
resumes.loc[resumes.schoolName=='Ipade','school'] = 'Universidad Panamericana'
resumes.loc[resumes.schoolName=='Ipade','Nation'] = 'mx'

resumes.loc[resumes.schoolName=='Iseg','school'] = 'Lisbon School of Economics and Management'
resumes.loc[resumes.schoolName=='Iseg','Nation'] = 'pt'
resumes.loc[resumes.schoolName=='Iseg - Lisbon School of Economics & Management','school'] = 'Lisbon School of Economics and Management'
resumes.loc[resumes.schoolName=='Iseg - Lisbon School of Economics & Management','Nation'] = 'pt'

resumes.loc[resumes.schoolName=='Indiana University - Purdue University','school'] = 'Indiana University-Purdue University-Indianapolis'
resumes.loc[resumes.schoolName=='Indiana University - Purdue University','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Indiana University Robert H. Mckinney School of Law','school'] = 'Indiana University-Purdue University-Indianapolis'
resumes.loc[resumes.schoolName=='Indiana University Robert H. Mckinney School of Law','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Indiana University School of Medicine','school'] = 'Indiana University-Purdue University-Indianapolis'
resumes.loc[resumes.schoolName=='Indiana University School of Medicine','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Indiana University, College of Arts And Sciences','school'] = 'Indiana University-Bloomington'
resumes.loc[resumes.schoolName=='Indiana University, College of Arts And Sciences','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Indiana University Maurer School of Law','school'] = 'Indiana University-Bloomington'
resumes.loc[resumes.schoolName=='Indiana University Maurer School of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Indiana University of Pa','school'] = 'Indiana University of Pennsylvania-Main Campus'
resumes.loc[resumes.schoolName=='Indiana University of Pa','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Florida A&M University College of Law','school'] = 'Florida Agricultural and Mechanical University'
resumes.loc[resumes.schoolName=='Florida A&M University College of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Iowa State University of Science And Technology','school'] = 'Iowa State University'
resumes.loc[resumes.schoolName=='Iowa State University of Science And Technology','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Zicklin School of Business','school'] = 'CUNY Bernard M Baruch College'
resumes.loc[resumes.schoolName=='Zicklin School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Baruch College/Cuny, Zicklin School of Business','school'] = 'CUNY Bernard M Baruch College'
resumes.loc[resumes.schoolName=='Baruch College/Cuny, Zicklin School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Zicklin School of Business, Baruch College','school'] = 'CUNY Bernard M Baruch College'
resumes.loc[resumes.schoolName=='Zicklin School of Business, Baruch College','Nation'] = 'us'

resumes.loc[resumes.schoolName=='York College, City University of New York','school'] = 'CUNY York College'
resumes.loc[resumes.schoolName=='York College, City University of New York','Nation'] = 'us'
resumes.loc[resumes.schoolName=='York College of The City University of New York','school'] = 'CUNY York College'
resumes.loc[resumes.schoolName=='York College of The City University of New York','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Quinnipiac University, School of Business','school'] = 'Quinnipiac University'
resumes.loc[resumes.schoolName=='Quinnipiac University, School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Ohio University, College of Business','school'] = 'Ohio University-Main Campus'
resumes.loc[resumes.schoolName=='Ohio University, College of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Barnard College of Columbia University','school'] = 'Barnard College'
resumes.loc[resumes.schoolName=='Barnard College of Columbia University','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Southern Methodist University - Cox School of Business','school'] = 'Southern Methodist University'
resumes.loc[resumes.schoolName=='Southern Methodist University - Cox School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Smu Cox School of Business','school'] = 'Southern Methodist University'
resumes.loc[resumes.schoolName=='Smu Cox School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Southern Nh University','school'] = 'Southern New Hampshire University'
resumes.loc[resumes.schoolName=='Southern Nh University','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Saint Olaf College','school'] = 'St Olaf College'
resumes.loc[resumes.schoolName=='Saint Olaf College','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Mercu Buana University','school'] = 'Universitas Mercu Buana'
resumes.loc[resumes.schoolName=='Mercu Buana University','Nation'] = 'id'

resumes.loc[resumes.schoolName=='Instituto Tecnológico Autónomo De México (Itam)','school'] = 'Instituto Tecnológico Autonómo de México'
resumes.loc[resumes.schoolName=='Instituto Tecnológico Autónomo De México (Itam)','Nation'] = 'mx'

resumes.loc[resumes.schoolName=='Peter T. Paul College of Business And Economics','school'] = 'University of New Hampshire-Main Campus'
resumes.loc[resumes.schoolName=='Peter T. Paul College of Business And Economics','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Vanderbilt University School of Nursing','school'] = 'Vanderbilt University'
resumes.loc[resumes.schoolName=='Vanderbilt University School of Nursing','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Valparaiso University School of Law','school'] = 'Valparaiso University'
resumes.loc[resumes.schoolName=='Valparaiso University School of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Southern University of New Orleans','school'] = 'Southern University at New Orleans'
resumes.loc[resumes.schoolName=='Southern University of New Orleans','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Católica Lisbon School of Business & Economics','school'] = 'Catholic University of Portugal'
resumes.loc[resumes.schoolName=='Católica Lisbon School of Business & Economics','Nation'] = 'pt'

resumes.loc[resumes.schoolName=='San Diego State University-California State University','school'] = 'San Diego State University'
resumes.loc[resumes.schoolName=='San Diego State University-California State University','Nation'] = 'us'

resumes.loc[resumes.schoolName=="Smith School of Business At Queen'S University",'school'] = "Queen's University"
resumes.loc[resumes.schoolName=="Smith School of Business At Queen'S University",'Nation'] = 'ca'
resumes.loc[resumes.schoolName=="Smith School of Business, Queen'S University",'school'] = "Queen's University"
resumes.loc[resumes.schoolName=="Smith School of Business, Queen'S University",'Nation'] = 'ca'

resumes.loc[resumes.schoolName=='Universidade Mackenzie','school'] = 'Universidade Presbiteriana Mackenzie'
resumes.loc[resumes.schoolName=='Universidade Mackenzie','Nation'] = 'br'
resumes.loc[resumes.schoolName=='Mackenzie','school'] = 'Universidade Presbiteriana Mackenzie'
resumes.loc[resumes.schoolName=='Mackenzie','Nation'] = 'br'
resumes.loc[resumes.schoolName=='Mackenzie University','school'] = 'Universidade Presbiteriana Mackenzie'
resumes.loc[resumes.schoolName=='Mackenzie University','Nation'] = 'br'

resumes.loc[resumes.schoolName=='Hebrew University','school'] = 'Hebrew University of Jerusalem'
resumes.loc[resumes.schoolName=='Hebrew University','Nation'] = 'il'
resumes.loc[resumes.schoolName=='The Hebrew University','school'] = 'Hebrew University of Jerusalem'
resumes.loc[resumes.schoolName=='The Hebrew University','Nation'] = 'il'

resumes.loc[resumes.schoolName=='Haifa University','school'] = 'University of Haifa'
resumes.loc[resumes.schoolName=='Haifa University','Nation'] = 'il'

resumes.loc[resumes.schoolName=='Technion – Israel Institute of Technology','school'] = 'Technion - Israel Institute of Technology'
resumes.loc[resumes.schoolName=='Technion – Israel Institute of Technology','Nation'] = 'il'
resumes.loc[resumes.schoolName=='הטכניון - מכון טכנולוגי לישראל | Technion','school'] = 'Technion - Israel Institute of Technology'
resumes.loc[resumes.schoolName=='הטכניון - מכון טכנולוגי לישראל | Technion','Nation'] = 'il'
resumes.loc[resumes.schoolName=='Technion, Israel Institute of Technology','school'] = 'Technion - Israel Institute of Technology'
resumes.loc[resumes.schoolName=='Technion, Israel Institute of Technology','Nation'] = 'il'

resumes.loc[resumes.schoolName=='Puc Minas','school'] = 'Pontifícia Universidade Católica de Minas Gerais'
resumes.loc[resumes.schoolName=='Puc Minas','Nation'] = 'br'
resumes.loc[resumes.schoolName=='Pontifical Catholic University of Minas Gerais','school'] = 'Pontifícia Universidade Católica de Minas Gerais'
resumes.loc[resumes.schoolName=='Pontifical Catholic University of Minas Gerais','Nation'] = 'br'

resumes.loc[resumes.schoolName=='University of Athens','school'] = 'National and Kapodistrian University of Athens'
resumes.loc[resumes.schoolName=='University of Athens','Nation'] = 'gr'

resumes.loc[resumes.schoolName=='Tbilisi State University','school'] = 'Ivane Javakhishvili Tbilisi State University'
resumes.loc[resumes.schoolName=='Tbilisi State University','Nation'] = 'ge'

resumes.loc[resumes.schoolName=='Technical University of Madrid','school'] = 'Universidad Politécnica de Madrid'
resumes.loc[resumes.schoolName=='Technical University of Madrid','Nation'] = 'es'

resumes.loc[resumes.schoolName=='Cracow University of Economics','school'] = 'Cracow University of Economics'
resumes.loc[resumes.schoolName=='Cracow University of Economics','Nation'] = 'pl'
resumes.loc[resumes.schoolName=='Uniwersytet Ekonomiczny W Krakowie','school'] = 'Cracow University of Economics'
resumes.loc[resumes.schoolName=='Uniwersytet Ekonomiczny W Krakowie','Nation'] = 'pl'

resumes.loc[resumes.schoolName=='Uniwersytet Ekonomiczny We Wrocławiu','school'] = 'Wroclaw University of Economics'
resumes.loc[resumes.schoolName=='Uniwersytet Ekonomiczny We Wrocławiu','Nation'] = 'pl'
resumes.loc[resumes.schoolName=='Wroclaw University of Economics','school'] = 'Wroclaw University of Economics'
resumes.loc[resumes.schoolName=='Wroclaw University of Economics','Nation'] = 'pl'

resumes.loc[resumes.schoolName=='University of Gdansk','school'] = 'Uniwersytet Gdanski'
resumes.loc[resumes.schoolName=='University of Gdansk','Nation'] = 'pl'

resumes.loc[resumes.schoolName=='Gdansk University of Technology','school'] = 'Politechnika Gdanska'
resumes.loc[resumes.schoolName=='Gdansk University of Technology','Nation'] = 'pl'

resumes.loc[resumes.schoolName=='Pontifical Xavierian University','school'] = 'Pontificia Universidad Javeriana'
resumes.loc[resumes.schoolName=='Pontifical Xavierian University','Nation'] = 'co'

resumes.loc[resumes.schoolName=='Université Paris-Sorbonne','school'] = 'Sorbonne University'
resumes.loc[resumes.schoolName=='Université Paris-Sorbonne','Nation'] = 'fr' 

resumes.loc[resumes.schoolName=='University of Lima','school'] = 'Universidad de Lima'
resumes.loc[resumes.schoolName=='University of Lima','Nation'] = 'pe' 

resumes.loc[resumes.schoolName=='University of Nigeria Nsukka','school'] = 'University of Nigeria'
resumes.loc[resumes.schoolName=='University of Nigeria Nsukka','Nation'] = 'ng' 

resumes.loc[resumes.schoolName=='Assumption University of Thailand','school'] = 'Assumption University'
resumes.loc[resumes.schoolName=='Assumption University of Thailand','Nation'] = 'th' 

resumes.loc[resumes.schoolName=='Skema Business School Sophia Antipolis','school'] = 'SKEMA Business School'
resumes.loc[resumes.schoolName=='Skema Business School Sophia Antipolis','Nation'] = 'fr' 

resumes.loc[resumes.schoolName=='University of Naples','school'] = 'University of Naples Federico II'
resumes.loc[resumes.schoolName=='University of Naples','Nation'] = 'it' 

resumes.loc[resumes.schoolName=='Lazarski University','school'] = 'Uczelnia Lazarskiego'
resumes.loc[resumes.schoolName=='Lazarski University','Nation'] = 'pl' 

resumes.loc[resumes.schoolName=='La Sorbonne','school'] = 'Sorbonne University'
resumes.loc[resumes.schoolName=='La Sorbonne','Nation'] = 'fr' 

resumes.loc[resumes.schoolName=='La Sapienza','school'] = 'Sapienza Università di Roma'
resumes.loc[resumes.schoolName=='La Sapienza','Nation'] = 'it' 
resumes.loc[resumes.schoolName=='La Sapienza University of Rome','school'] = 'Sapienza Università di Roma'
resumes.loc[resumes.schoolName=='La Sapienza University of Rome','Nation'] = 'it' 
resumes.loc[resumes.schoolName=='Sapienza University','school'] = 'Sapienza Università di Roma'
resumes.loc[resumes.schoolName=='Sapienza University','Nation'] = 'it' 
resumes.loc[resumes.schoolName=='Università Degli Studi Di Roma "La Sapienza"','school'] = 'Sapienza Università di Roma'
resumes.loc[resumes.schoolName=='Università Degli Studi Di Roma "La Sapienza"','Nation'] = 'it' 
resumes.loc[resumes.schoolName=='Università Di Roma','school'] = 'Sapienza Università di Roma'
resumes.loc[resumes.schoolName=='Università Di Roma','Nation'] = 'it' 
resumes.loc[resumes.schoolName=='Università La Sapienza','school'] = 'Sapienza Università di Roma'
resumes.loc[resumes.schoolName=='Università La Sapienza','Nation'] = 'it' 

resumes.loc[resumes.schoolName=='Università Politecnica Delle Marche','school'] = 'Marche Polytechnic University'
resumes.loc[resumes.schoolName=='Università Politecnica Delle Marche','Nation'] = 'it' 

resumes.loc[resumes.schoolName=='Universität Des Saarlandes','school'] = 'Saarland University'
resumes.loc[resumes.schoolName=='Universität Des Saarlandes','Nation'] = 'de' 

resumes.loc[resumes.schoolName=='Università Degli Studi Di Bari','school'] = 'University of Bari'
resumes.loc[resumes.schoolName=='Università Degli Studi Di Bari','Nation'] = 'it' 

resumes.loc[resumes.schoolName=='Università Degli Studi Di Bergamo','school'] = 'University of Bergamo'
resumes.loc[resumes.schoolName=='Università Degli Studi Di Bergamo','Nation'] = 'it' 

resumes.loc[resumes.schoolName=='Università Di Palermo','school'] = 'University of Palermo'
resumes.loc[resumes.schoolName=='Università Di Palermo','Nation'] = 'it' 

resumes.loc[resumes.schoolName=='Università Degli Studi Di Modena E Reggio Emilia','school'] = 'Università Degli Studi Di Modena E Reggio Emilia'
resumes.loc[resumes.schoolName=='Università Degli Studi Di Modena E Reggio Emilia','Nation'] = 'it' 
resumes.loc[resumes.schoolName=='University of Modena And Reggio Emilia','school'] = 'Università Degli Studi Di Modena E Reggio Emilia'
resumes.loc[resumes.schoolName=='University of Modena And Reggio Emilia','Nation'] = 'it' 
resumes.loc[resumes.schoolName=='Università Di Modena E Reggio Emilia','school'] = 'Università Degli Studi Di Modena E Reggio Emilia'
resumes.loc[resumes.schoolName=='Università Di Modena E Reggio Emilia','Nation'] = 'it' 

resumes.loc[resumes.schoolName=='Università Degli Studi Di Cagliari','school'] = 'University of Cagliari'
resumes.loc[resumes.schoolName=='Università Degli Studi Di Cagliari','Nation'] = 'it' 

resumes.loc[resumes.schoolName=='Università Degli Studi Roma Tre','school'] = 'Roma Tre University'
resumes.loc[resumes.schoolName=='Università Degli Studi Roma Tre','Nation'] = 'it' 
resumes.loc[resumes.schoolName=='Università Degli Studi Di Roma Tre','school'] = 'Roma Tre University'
resumes.loc[resumes.schoolName=='Università Degli Studi Di Roma Tre','Nation'] = 'it' 

resumes.loc[resumes.schoolName=='University of Miskolc','school'] = 'Miskolci Egyetem'
resumes.loc[resumes.schoolName=='University of Miskolc','Nation'] = 'hu' 

resumes.loc[resumes.schoolName=='Edinburgh Business School','school'] = 'Heriot-Watt University'
resumes.loc[resumes.schoolName=='Edinburgh Business School','Nation'] = 'gb' 

resumes.loc[resumes.schoolName=='University of Edinburgh Business School','school'] = 'University of Edinburgh'
resumes.loc[resumes.schoolName=='University of Edinburgh Business School','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='The University of Glasgow','school'] = 'University of Glasgow'
resumes.loc[resumes.schoolName=='The University of Glasgow','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='Københavns Universitet - University of Copenhagen','school'] = 'University of Copenhagen'
resumes.loc[resumes.schoolName=='Københavns Universitet - University of Copenhagen','Nation'] = 'dk'

resumes.loc[resumes.schoolName=='Kozminski University','school'] = 'Akademia Leona Kozminskiego'
resumes.loc[resumes.schoolName=='Kozminski University','Nation'] = 'pl'

resumes.loc[resumes.schoolName=='Kungliga Tekniska Högskolan','school'] = 'KTH Royal Institute of Technology'
resumes.loc[resumes.schoolName=='Kungliga Tekniska Högskolan','Nation'] = 'se'

resumes.loc[resumes.schoolName=='Korea Advanced Institute of Science And Technology','school'] = 'KAIST'
resumes.loc[resumes.schoolName=='Korea Advanced Institute of Science And Technology','Nation'] = 'kr'

resumes.loc[resumes.schoolName=='Kyunghee University','school'] = 'Kyung Hee University'
resumes.loc[resumes.schoolName=='Kyunghee University','Nation'] = 'kr'

resumes.loc[resumes.schoolName=="King'S College, University of London",'school'] = "King's College London"
resumes.loc[resumes.schoolName=="King'S College, University of London",'Nation'] = 'gb'

resumes.loc[resumes.schoolName=='London School of Economics & Political Science','school'] = 'The London School of Economics and Political Science'
resumes.loc[resumes.schoolName=='London School of Economics & Political Science','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='Izmir University of Economics','school'] = 'Izmir Ekonomi Üniversitesi'
resumes.loc[resumes.schoolName=='Izmir University of Economics','Nation'] = 'tr' 

resumes.loc[resumes.schoolName=='Tu Berlin','school'] = 'Technical University of Berlin'
resumes.loc[resumes.schoolName=='Tu Berlin','Nation'] = 'de' 

resumes.loc[resumes.schoolName=='Università Degli Studi Di Perugia','school'] = 'University of Perugia'
resumes.loc[resumes.schoolName=='Università Degli Studi Di Perugia','Nation'] = 'it' 

resumes.loc[resumes.schoolName=='Università Degli Studi Di Verona','school'] = 'University of Verona'
resumes.loc[resumes.schoolName=='Università Degli Studi Di Verona','Nation'] = 'it' 

resumes.loc[resumes.schoolName=='La Sapienza University','school'] = 'Sapienza Università di Roma'
resumes.loc[resumes.schoolName=='La Sapienza University','Nation'] = 'it' 

resumes.loc[resumes.schoolName=='Maastricht University School of Business And Economics','school'] = 'Universiteit Maastricht'
resumes.loc[resumes.schoolName=='Maastricht University School of Business And Economics','Nation'] = 'nl' 

resumes.loc[resumes.schoolName=='Degroote School of Business, Mcmaster University','school'] = 'McMaster University'
resumes.loc[resumes.schoolName=='Degroote School of Business, Mcmaster University','Nation'] = 'ca' 

resumes.loc[resumes.schoolName=='Beijing University of Aeronautics And Astronautics','school'] = 'Beihang University'
resumes.loc[resumes.schoolName=='Beijing University of Aeronautics And Astronautics','Nation'] = 'cn' 

resumes.loc[resumes.schoolName=='Ted Rogers School of Management, Ryerson University','school'] = 'Ryerson University'
resumes.loc[resumes.schoolName=='Ted Rogers School of Management, Ryerson University','Nation'] = 'ca' 
resumes.loc[resumes.schoolName=='Ted Rogers School of Management - Ryerson University','school'] = 'Ryerson University'
resumes.loc[resumes.schoolName=='Ted Rogers School of Management - Ryerson University','Nation'] = 'ca' 

resumes.loc[resumes.schoolName=='American University, Washington College of Law','school'] = 'American University'
resumes.loc[resumes.schoolName=='American University, Washington College of Law','Nation'] = 'us' 

resumes.loc[resumes.schoolName=='University of Montana - Missoula','school'] = 'The University of Montana'
resumes.loc[resumes.schoolName=='University of Montana - Missoula','Nation'] = 'us' 

resumes.loc[resumes.schoolName=='University of Nigeria, Nsukka','school'] = 'University of Nigeria'
resumes.loc[resumes.schoolName=='University of Nigeria, Nsukka','Nation'] = 'ng' 

resumes.loc[resumes.schoolName=='University of New South Wales (Unsw)','school'] = 'The University of New South Wales'
resumes.loc[resumes.schoolName=='University of New South Wales (Unsw)','Nation'] = 'au' 

resumes.loc[resumes.schoolName=='Temple University School of Pharmacy','school'] = 'Temple University'
resumes.loc[resumes.schoolName=='Temple University School of Pharmacy','Nation'] = 'us' 
resumes.loc[resumes.schoolName=='Temple University, College of Engineering','school'] = 'Temple University'
resumes.loc[resumes.schoolName=='Temple University, College of Engineering','Nation'] = 'us' 
resumes.loc[resumes.schoolName=='Temple University, College of Liberal Arts','school'] = 'Temple University'
resumes.loc[resumes.schoolName=='Temple University, College of Liberal Arts','Nation'] = 'us' 
resumes.loc[resumes.schoolName=='Temple University, College of Science & Technology','school'] = 'Temple University'
resumes.loc[resumes.schoolName=='Temple University, College of Science & Technology','Nation'] = 'us' 

resumes.loc[resumes.schoolName=='The University of New Orleans','school'] = 'University of New Orleans'
resumes.loc[resumes.schoolName=='The University of New Orleans','Nation'] = 'us' 

resumes.loc[resumes.schoolName=='Rutgers The State University of New Jersey','school'] = 'Rutgers University-New Brunswick'
resumes.loc[resumes.schoolName=='Rutgers The State University of New Jersey','Nation'] = 'us' 
resumes.loc[resumes.schoolName=='Rutgers University–New Brunswick','school'] = 'Rutgers University-New Brunswick'
resumes.loc[resumes.schoolName=='Rutgers University–New Brunswick','Nation'] = 'us' 
resumes.loc[resumes.schoolName=='Rutgers College','school'] = 'Rutgers University-New Brunswick'
resumes.loc[resumes.schoolName=='Rutgers College','Nation'] = 'us' 
resumes.loc[resumes.schoolName=='Rutgers College, Rutgers University','school'] = 'Rutgers University-New Brunswick'
resumes.loc[resumes.schoolName=='Rutgers College, Rutgers University','Nation'] = 'us' 
resumes.loc[resumes.schoolName=='Rutgers Law School','school'] = 'Rutgers University-New Brunswick'
resumes.loc[resumes.schoolName=='Rutgers Law School','Nation'] = 'us' 
resumes.loc[resumes.schoolName=='Rutgers School of Engineering','school'] = 'Rutgers University-New Brunswick'
resumes.loc[resumes.schoolName=='Rutgers School of Engineering','Nation'] = 'us' 
resumes.loc[resumes.schoolName=='Rutgers School of Law','school'] = 'Rutgers University-New Brunswick'
resumes.loc[resumes.schoolName=='Rutgers School of Law','Nation'] = 'us' 
resumes.loc[resumes.schoolName=='Rutgers State University','school'] = 'Rutgers University-New Brunswick'
resumes.loc[resumes.schoolName=='Rutgers State University','Nation'] = 'us' 
resumes.loc[resumes.schoolName=='Rutgers University School of Engineering','school'] = 'Rutgers University-New Brunswick'
resumes.loc[resumes.schoolName=='Rutgers University School of Engineering','Nation'] = 'us' 
resumes.loc[resumes.schoolName=='Rutgers University School of Law','school'] = 'Rutgers University-New Brunswick'
resumes.loc[resumes.schoolName=='Rutgers University School of Law','Nation'] = 'us' 
resumes.loc[resumes.schoolName=='Rutgers University, School of Arts And Sciences','school'] = 'Rutgers University-New Brunswick'
resumes.loc[resumes.schoolName=='Rutgers University, School of Arts And Sciences','Nation'] = 'us' 
resumes.loc[resumes.schoolName=='Rutgers University, School of Engineering','school'] = 'Rutgers University-New Brunswick'
resumes.loc[resumes.schoolName=='Rutgers University, School of Engineering','Nation'] = 'us' 
resumes.loc[resumes.schoolName=='Rutgers University, The State University of New Jersey','school'] = 'Rutgers University-New Brunswick'
resumes.loc[resumes.schoolName=='Rutgers University, The State University of New Jersey','Nation'] = 'us' 
resumes.loc[resumes.schoolName=='Rutgers, The State University','school'] = 'Rutgers University-New Brunswick'
resumes.loc[resumes.schoolName=='Rutgers, The State University','Nation'] = 'us' 
resumes.loc[resumes.schoolName=='Rutgers University, Rutgers College','school'] = 'Rutgers University-New Brunswick'
resumes.loc[resumes.schoolName=='Rutgers University, Rutgers College','Nation'] = 'us' 
resumes.loc[resumes.schoolName=='Rutgers University Business School','school'] = 'Rutgers University-New Brunswick'
resumes.loc[resumes.schoolName=='Rutgers University Business School','Nation'] = 'us' 

resumes.loc[resumes.schoolName=='Amsterdam University of Applied Sciences','school'] = 'Hogeschool van Amsterdam'
resumes.loc[resumes.schoolName=='Amsterdam University of Applied Sciences','Nation'] = 'nl' 

resumes.loc[resumes.schoolName=='Universidad Carlos Iii','school'] = 'Universidad Carlos III de Madrid'
resumes.loc[resumes.schoolName=='Universidad Carlos Iii','Nation'] = 'es' 
resumes.loc[resumes.schoolName=='Carlos Iii University','school'] = 'Universidad Carlos III de Madrid'
resumes.loc[resumes.schoolName=='Carlos Iii University','Nation'] = 'es' 

resumes.loc[resumes.schoolName=='Ie Business School','school'] = 'IE University'
resumes.loc[resumes.schoolName=='Ie Business School','Nation'] = 'es' 

resumes.loc[resumes.schoolName=='Ryerson','school'] = 'Ryerson University'
resumes.loc[resumes.schoolName=='Ryerson','Nation'] = 'ca' 

resumes.loc[resumes.schoolName=='Rwth Aachen','school'] = 'RWTH Aachen University'
resumes.loc[resumes.schoolName=='Rwth Aachen','Nation'] = 'de' 

resumes.loc[resumes.schoolName=='Tu Dortmund','school'] = 'Technische Universität Dortmund'
resumes.loc[resumes.schoolName=='Tu Dortmund','Nation'] = 'de' 

resumes.loc[resumes.schoolName=="Université D'Ottawa",'school'] = 'University of Ottawa'
resumes.loc[resumes.schoolName=="Université D'Ottawa",'Nation'] = 'ca' 

resumes.loc[resumes.schoolName=='Unip','school'] = 'Universidade Paulista'
resumes.loc[resumes.schoolName=='Unip','Nation'] = 'br' 
resumes.loc[resumes.schoolName=='Unip Universidade Paulista','school'] = 'Universidade Paulista'
resumes.loc[resumes.schoolName=='Unip Universidade Paulista','Nation'] = 'br' 

resumes.loc[resumes.schoolName=='Universidad Autónoma De San Luis Potosí','school'] = 'Autonomous University of San Luis Potosí'
resumes.loc[resumes.schoolName=='Universidad Autónoma De San Luis Potosí','Nation'] = 'mx' 

resumes.loc[resumes.schoolName=='Universidad De Almería','school'] = 'University of Almería'
resumes.loc[resumes.schoolName=='Universidad De Almería','Nation'] = 'es' 

resumes.loc[resumes.schoolName=='Universidad De Vigo','school'] = 'University of Vigo'
resumes.loc[resumes.schoolName=='Universidad De Vigo','Nation'] = 'es' 

resumes.loc[resumes.schoolName=='Université De Franche-Comté','school'] = 'University of Franche-Comté'
resumes.loc[resumes.schoolName=='Université De Franche-Comté','Nation'] = 'fr' 

resumes.loc[resumes.schoolName=='Université De La Rochelle','school'] = 'University of La Rochelle'
resumes.loc[resumes.schoolName=='Université De La Rochelle','Nation'] = 'fr' 

resumes.loc[resumes.schoolName=='Université De Lille','school'] = 'University of Lille'
resumes.loc[resumes.schoolName=='Université De Lille','Nation'] = 'fr' 

resumes.loc[resumes.schoolName=='Université De Limoges','school'] = 'University of Limoges'
resumes.loc[resumes.schoolName=='Université De Limoges','Nation'] = 'fr' 

resumes.loc[resumes.schoolName=='Université De Namur','school'] = 'University of Namur'
resumes.loc[resumes.schoolName=='Université De Namur','Nation'] = 'be' 

resumes.loc[resumes.schoolName=='Universidade De Lisboa','school'] = 'University of Lisbon'
resumes.loc[resumes.schoolName=='Universidade De Lisboa','Nation'] = 'pt' 

resumes.loc[resumes.schoolName=='Universidad De Santiago De Chile','school'] = 'University of Santiago, Chile'
resumes.loc[resumes.schoolName=='Universidad De Santiago De Chile','Nation'] = 'cl' 

resumes.loc[resumes.schoolName=='Universidad Nacional De La Matanza','school'] = 'National University of La Matanza'
resumes.loc[resumes.schoolName=='Universidad Nacional De La Matanza','Nation'] = 'ar' 

resumes.loc[resumes.schoolName=='Universidad Nacional De Cuyo','school'] = 'National University of Cuyo'
resumes.loc[resumes.schoolName=='Universidad Nacional De Cuyo','Nation'] = 'ar' 

resumes.loc[resumes.schoolName=='Universidad Del Desarrollo','school'] = 'University of Desarrollo'
resumes.loc[resumes.schoolName=='Universidad Del Desarrollo','Nation'] = 'cl' 

resumes.loc[resumes.schoolName=='Universidad Del País Vasco','school'] = 'University of the Basque Country'
resumes.loc[resumes.schoolName=='Universidad Del País Vasco','Nation'] = 'es' 

resumes.loc[resumes.schoolName=='Universidad De Alcalá De Henares','school'] = 'Universidad de Alcalá'
resumes.loc[resumes.schoolName=='Universidad De Alcalá De Henares','Nation'] = 'es' 

resumes.loc[resumes.schoolName=='Universitat Autónoma De Barcelona','school'] = 'Universidad Autónoma de Barcelona'
resumes.loc[resumes.schoolName=='Universitat Autónoma De Barcelona','Nation'] = 'es' 

resumes.loc[resumes.schoolName=='Universitat De Girona','school'] = 'University of Girona'
resumes.loc[resumes.schoolName=='Universitat De Girona','Nation'] = 'es' 

resumes.loc[resumes.schoolName=='Universitat De Valencia','school'] = 'University of Valencia'
resumes.loc[resumes.schoolName=='Universitat De Valencia','Nation'] = 'es' 

resumes.loc[resumes.schoolName=='Universitat Ramon Llull','school'] = 'Ramon Llull University'
resumes.loc[resumes.schoolName=='Universitat Ramon Llull','Nation'] = 'es' 

resumes.loc[resumes.schoolName=='Universitatea Politehnica Timisoara','school'] = 'The Polytechnic University of Timisoara'
resumes.loc[resumes.schoolName=='Universitatea Politehnica Timisoara','Nation'] = 'ro' 
resumes.loc[resumes.schoolName=='Universitatea Politehnica Din Timisoara','school'] = 'The Polytechnic University of Timisoara'
resumes.loc[resumes.schoolName=='Universitatea Politehnica Din Timisoara','Nation'] = 'ro' 
resumes.loc[resumes.schoolName=='Politehnica University of Timisoara','school'] = 'The Polytechnic University of Timisoara'
resumes.loc[resumes.schoolName=='Politehnica University of Timisoara','Nation'] = 'ro' 
resumes.loc[resumes.schoolName=='Polytechnic University of Timisoara','school'] = 'The Polytechnic University of Timisoara'
resumes.loc[resumes.schoolName=='Polytechnic University of Timisoara','Nation'] = 'ro' 

resumes.loc[resumes.schoolName=='Universitatea Tehnică Cluj-Napoca','school'] = 'Technical University of Cluj-Napoca'
resumes.loc[resumes.schoolName=='Universitatea Tehnică Cluj-Napoca','Nation'] = 'ro' 

resumes.loc[resumes.schoolName=='Universitat Politecnica De Catalunya','school'] = 'Polytechnic University of Catalonia'
resumes.loc[resumes.schoolName=='Universitat Politecnica De Catalunya','Nation'] = 'es' 
resumes.loc[resumes.schoolName=='Universidad Politécnica De Cataluña','school'] = 'Polytechnic University of Catalonia'
resumes.loc[resumes.schoolName=='Universidad Politécnica De Cataluña','Nation'] = 'es' 

resumes.loc[resumes.schoolName=='Universitat Politècnica De València Upv','school'] = 'Polytechnic University of Valencia'
resumes.loc[resumes.schoolName=='Universitat Politècnica De València Upv','Nation'] = 'es' 

resumes.loc[resumes.schoolName=='Universidade Federal De Goiás','school'] = 'Federal University of Goiás'
resumes.loc[resumes.schoolName=='Universidade Federal De Goiás','Nation'] = 'br' 

resumes.loc[resumes.schoolName=='Universidade Federal De São Paulo','school'] = 'Federal University of São Paulo'
resumes.loc[resumes.schoolName=='Universidade Federal De São Paulo','Nation'] = 'br' 

resumes.loc[resumes.schoolName=='Universidade Federal De Ouro Preto','school'] = 'Federal University of Ouro Preto'
resumes.loc[resumes.schoolName=='Universidade Federal De Ouro Preto','Nation'] = 'br' 

resumes.loc[resumes.schoolName=='Universidade Federal De Uberlândia','school'] = 'Federal University of Uberlândia'
resumes.loc[resumes.schoolName=='Universidade Federal De Uberlândia','Nation'] = 'br' 

resumes.loc[resumes.schoolName=='Universidade Federal De Viçosa','school'] = 'Federal University of Viçosa'
resumes.loc[resumes.schoolName=='Universidade Federal De Viçosa','Nation'] = 'br' 

resumes.loc[resumes.schoolName=='Uninove','school'] = 'Universidade Nove de Julho'
resumes.loc[resumes.schoolName=='Uninove','Nation'] = 'br' 

resumes.loc[resumes.schoolName=='Ibmec','school'] = 'Ibmec'
resumes.loc[resumes.schoolName=='Ibmec','Nation'] = 'br' 

resumes.loc[resumes.schoolName=='Inseec','school'] = 'INSEEC U'
resumes.loc[resumes.schoolName=='Inseec','Nation'] = 'fr' 
resumes.loc[resumes.schoolName=='Inseec Business School','school'] = 'INSEEC U'
resumes.loc[resumes.schoolName=='Inseec Business School','Nation'] = 'fr' 

resumes.loc[resumes.schoolName=='Université De Liège','school'] = 'University of Liège'
resumes.loc[resumes.schoolName=='Université De Liège','Nation'] = 'be' 

resumes.loc[resumes.schoolName=='Lagos State Polytechnic','school'] = 'Lagos State Polytechnic'
resumes.loc[resumes.schoolName=='Lagos State Polytechnic','Nation'] = 'ng' 

resumes.loc[resumes.schoolName=='Ekiti State University','school'] = 'Ekiti State University, Ado Ekiti'
resumes.loc[resumes.schoolName=='Ekiti State University','Nation'] = 'ng' 

resumes.loc[resumes.schoolName=='University of Lagos, Lagos State','school'] = 'University of Lagos'
resumes.loc[resumes.schoolName=='University of Lagos, Lagos State','Nation'] = 'ng' 
resumes.loc[resumes.schoolName=='University of Lagos, Akoka, Lagos State','school'] = 'University of Lagos'
resumes.loc[resumes.schoolName=='University of Lagos, Akoka, Lagos State','Nation'] = 'ng' 

resumes.loc[resumes.schoolName=='University of Ghent','school'] = 'Ghent University'
resumes.loc[resumes.schoolName=='University of Ghent','Nation'] = 'be' 
resumes.loc[resumes.schoolName=='Ghent Uni.','school'] = 'Ghent University'
resumes.loc[resumes.schoolName=='Ghent Uni.','Nation'] = 'be' 

resumes.loc[resumes.schoolName=='Faculty of Engineering, Alexandria University','school'] = 'Faculty of Engineering, Alexandria University'
resumes.loc[resumes.schoolName=='Faculty of Engineering, Alexandria University','Nation'] = 'eg' 
resumes.loc[resumes.schoolName=='Faculty of Engineering, Alexandria University, Egypt','school'] = 'Faculty of Engineering, Alexandria University'
resumes.loc[resumes.schoolName=='Faculty of Engineering, Alexandria University, Egypt','Nation'] = 'eg' 

resumes.loc[resumes.schoolName=='Faculty of Engineering, Cairo University','school'] = 'Faculty of Engineering, Cairo University'
resumes.loc[resumes.schoolName=='Faculty of Engineering, Cairo University','Nation'] = 'eg' 
resumes.loc[resumes.schoolName=='Faculty of Engineering Cairo University','school'] = 'Faculty of Engineering, Cairo University'
resumes.loc[resumes.schoolName=='Faculty of Engineering Cairo University','Nation'] = 'eg' 
resumes.loc[resumes.schoolName=='Faculty of Engineering - Cairo University','school'] = 'Faculty of Engineering, Cairo University'
resumes.loc[resumes.schoolName=='Faculty of Engineering - Cairo University','Nation'] = 'eg' 
 
resumes.loc[resumes.schoolName=='Faap - Fundação Armando Alvares Penteado','school'] = 'Fundação Armando Alvares Penteado'
resumes.loc[resumes.schoolName=='Faap - Fundação Armando Alvares Penteado','Nation'] = 'br'
resumes.loc[resumes.schoolName=='Faap','school'] = 'Fundação Armando Alvares Penteado'
resumes.loc[resumes.schoolName=='Faap','Nation'] = 'br'
resumes.loc[resumes.schoolName=='Fundação Armando Alvares Penteado','school'] = 'Fundação Armando Alvares Penteado'
resumes.loc[resumes.schoolName=='Fundação Armando Alvares Penteado','Nation'] = 'br'

resumes.loc[resumes.schoolName=='Kanpur University','school'] = 'Chhatrapati Shahu Ji Maharaj University'
resumes.loc[resumes.schoolName=='Kanpur University','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Csjm University','school'] = 'Chhatrapati Shahu Ji Maharaj University'
resumes.loc[resumes.schoolName=='Csjm University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Ism Dhanbad','school'] = 'Indian School of Mines'
resumes.loc[resumes.schoolName=='Ism Dhanbad','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Indian Institute of Technology (Indian School of Mines)','school'] = 'Indian School of Mines'
resumes.loc[resumes.schoolName=='Indian Institute of Technology (Indian School of Mines)','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Israel Institute of Technology','school'] = 'Technion Israel Institute of Technology'
resumes.loc[resumes.schoolName=='Israel Institute of Technology','Nation'] = 'il'

resumes.loc[resumes.schoolName=='G H Raisoni College of Engineering','school'] = 'G. H. Raisoni College of Engineering'
resumes.loc[resumes.schoolName=='G H Raisoni College of Engineering','Nation'] = 'in'
resumes.loc[resumes.schoolName=='G. H. Raisoni College of Engineering','school'] = 'G. H. Raisoni College of Engineering'
resumes.loc[resumes.schoolName=='G. H. Raisoni College of Engineering','Nation'] = 'in'
resumes.loc[resumes.schoolName=='G.H. Raisoni College of Engineering','school'] = 'G. H. Raisoni College of Engineering'
resumes.loc[resumes.schoolName=='G.H. Raisoni College of Engineering','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Gdańsk University of Technology','school'] = 'Politechnika Gdanska'
resumes.loc[resumes.schoolName=='Gdańsk University of Technology','Nation'] = 'pl'

resumes.loc[resumes.schoolName=='Karunya University','school'] = 'Karunya Institute of Technology and Sciences'
resumes.loc[resumes.schoolName=='Karunya University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='University of Aegean','school'] = 'University of the Aegean'
resumes.loc[resumes.schoolName=='University of Aegean','Nation'] = 'gr'

resumes.loc[resumes.schoolName=='Univerzita Karlova V Praze','school'] = 'Charles University'
resumes.loc[resumes.schoolName=='Univerzita Karlova V Praze','Nation'] = 'cz'
resumes.loc[resumes.schoolName=='Charles University in Prague','school'] = 'Charles University'
resumes.loc[resumes.schoolName=='Charles University in Prague','Nation'] = 'cz'

resumes.loc[resumes.schoolName=='Bms College of Engineering','school'] = 'Bms College of Engineering'
resumes.loc[resumes.schoolName=='Bms College of Engineering','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Netaji Subhas Institute of Technology','school'] = 'Netaji Subhas University of Technology'
resumes.loc[resumes.schoolName=='Netaji Subhas Institute of Technology','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Uptu','school'] = 'Dr. A.P.J. Abdul Kalam Technical University'
resumes.loc[resumes.schoolName=='Uptu','Nation'] = 'in'
resumes.loc[resumes.schoolName=='U.P.T.U','school'] = 'Dr. A.P.J. Abdul Kalam Technical University'
resumes.loc[resumes.schoolName=='U.P.T.U','Nation'] = 'in'
resumes.loc[resumes.schoolName=='U.P. Technical University','school'] = 'Dr. A.P.J. Abdul Kalam Technical University'
resumes.loc[resumes.schoolName=='U.P. Technical University','Nation'] = 'in'
resumes.loc[resumes.schoolName=='U.P Technical University','school'] = 'Dr. A.P.J. Abdul Kalam Technical University'
resumes.loc[resumes.schoolName=='U.P Technical University','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Uptu University','school'] = 'Dr. A.P.J. Abdul Kalam Technical University'
resumes.loc[resumes.schoolName=='Uptu University','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Uttar Pradesh Technical University, Lucknow','school'] = 'Dr. A.P.J. Abdul Kalam Technical University'
resumes.loc[resumes.schoolName=='Uttar Pradesh Technical University, Lucknow','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Dr Apj Abdul Kalam Technical University','school'] = 'Dr. A.P.J. Abdul Kalam Technical University'
resumes.loc[resumes.schoolName=='Dr Apj Abdul Kalam Technical University','Nation'] = 'in'
resumes.loc[resumes.schoolName=='A.P.J. Abdul Kalam Technical University','school'] = 'Dr. A.P.J. Abdul Kalam Technical University'
resumes.loc[resumes.schoolName=='A.P.J. Abdul Kalam Technical University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Cmr Institute of Technology','school'] = 'Cmr Institute of Technology'
resumes.loc[resumes.schoolName=='Cmr Institute of Technology','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Ignou University','school'] = 'Indira Gandhi National Open University'
resumes.loc[resumes.schoolName=='Ignou University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Manav Rachna International University','school'] = 'Manav Rachna International Institute Of Research And Studies'
resumes.loc[resumes.schoolName=='Manav Rachna International University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Sikkim Manipal Institute of Technology','school'] = 'Sikkim Manipal University'
resumes.loc[resumes.schoolName=='Sikkim Manipal Institute of Technology','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Sona College of Technology','school'] = 'Sona College of Technology'
resumes.loc[resumes.schoolName=='Sona College of Technology','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Devi Ahilya University','school'] = 'Devi Ahilya Vishwavidyalaya'
resumes.loc[resumes.schoolName=='Devi Ahilya University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Sinhgad Institute of Management','school'] = 'Sinhgad Institute of Management'
resumes.loc[resumes.schoolName=='Sinhgad Institute of Management','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Ethiraj College For Women','school'] = 'Ethiraj College For Women'
resumes.loc[resumes.schoolName=='Ethiraj College For Women','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Imt Ghaziabad','school'] = 'Institute of Management Technology, Ghaziabad'
resumes.loc[resumes.schoolName=='Imt Ghaziabad','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Nit Warangal','school'] = 'National Institute of Technology, Warangal'
resumes.loc[resumes.schoolName=='Nit Warangal','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Jamia Hamdard University','school'] = 'Jamia Hamdard'
resumes.loc[resumes.schoolName=='Jamia Hamdard University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Malnad College of Engineering','school'] = 'Malnad College of Engineering'
resumes.loc[resumes.schoolName=='Malnad College of Engineering','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Iiit Hyderabad','school'] = 'International Institute of Information Technology, Hyderabad'
resumes.loc[resumes.schoolName=='Iiit Hyderabad','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Iim Ahmedabad','school'] = 'Indian Institute of Management Ahmedabad'
resumes.loc[resumes.schoolName=='Iim Ahmedabad','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Indian Institute of Management Bangalore','school'] = 'Indian Institute of Management Bangalore'
resumes.loc[resumes.schoolName=='Indian Institute of Management Bangalore','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Iim Bangalore','school'] = 'Indian Institute of Management Bangalore'
resumes.loc[resumes.schoolName=='Iim Bangalore','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Iimb','school'] = 'Indian Institute of Management Bangalore'
resumes.loc[resumes.schoolName=='Iimb','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Indian Institute of Management Kozhikode','school'] = 'Indian Institute of Management Kozhikode'
resumes.loc[resumes.schoolName=='Indian Institute of Management Kozhikode','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Iim Calcutta','school'] = 'Indian Institute of Management Calcutta'
resumes.loc[resumes.schoolName=='Iim Calcutta','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Indian Institute of Management Indore','school'] = 'Indian Institute of Management Indore'
resumes.loc[resumes.schoolName=='Indian Institute of Management Indore','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Iim Indore','school'] = 'Indian Institute of Management Indore'
resumes.loc[resumes.schoolName=='Iim Indore','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Iim Lucknow','school'] = 'Indian Institute of Management Lucknow'
resumes.loc[resumes.schoolName=='Iim Lucknow','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Nit Calicut','school'] = 'National Institute of Technology, Calicut'
resumes.loc[resumes.schoolName=='Nit Calicut','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Nit Durgapur','school'] = 'National Institute of Technology, Durgapur'
resumes.loc[resumes.schoolName=='Nit Durgapur','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Nit Hamirpur','school'] = 'National Institute of Technology, Hamirpur'
resumes.loc[resumes.schoolName=='Nit Hamirpur','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Nit Jamshedpur','school'] = 'National Institute of Technology, Jamshedpur'
resumes.loc[resumes.schoolName=='Nit Jamshedpur','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Nit Kurukshetra','school'] = 'National Institute of Technology, Kurukshetra'
resumes.loc[resumes.schoolName=='Nit Kurukshetra','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Nit Kurukshetra, Haryana','school'] = 'National Institute of Technology, Kurukshetra'
resumes.loc[resumes.schoolName=='Nit Kurukshetra, Haryana','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Nit Patna','school'] = 'National Institute of Technology, Patna'
resumes.loc[resumes.schoolName=='Nit Patna','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Nit Raipur','school'] = 'National Institute of Technology, Raipur'
resumes.loc[resumes.schoolName=='Nit Raipur','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Nit Rourkela','school'] = 'National Institute of Technology, Rourkela'
resumes.loc[resumes.schoolName=='Nit Rourkela','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Nit Silchar','school'] = 'National Institute of Technology, Silchar'
resumes.loc[resumes.schoolName=='Nit Silchar','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Nit Silchar(National Institute of Technology , Silchar)','school'] = 'National Institute of Technology, Silchar'
resumes.loc[resumes.schoolName=='Nit Silchar(National Institute of Technology , Silchar)','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Dehradun Institute of Technology','school'] = 'DIT University'
resumes.loc[resumes.schoolName=='Dehradun Institute of Technology','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Dit,Dehradun','school'] = 'DIT University'
resumes.loc[resumes.schoolName=='Dit,Dehradun','Nation'] = 'in'

resumes.loc[resumes.schoolName=='C.C.S University','school'] = 'Chaudhary Charan Singh University'
resumes.loc[resumes.schoolName=='C.C.S University','Nation'] = 'in'
resumes.loc[resumes.schoolName=='C.C.S. University','school'] = 'Chaudhary Charan Singh University'
resumes.loc[resumes.schoolName=='C.C.S. University','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Ccs University','school'] = 'Chaudhary Charan Singh University'
resumes.loc[resumes.schoolName=='Ccs University','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Ccs University Meerut','school'] = 'Chaudhary Charan Singh University'
resumes.loc[resumes.schoolName=='Ccs University Meerut','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Ccs University, Meerut','school'] = 'Chaudhary Charan Singh University'
resumes.loc[resumes.schoolName=='Ccs University, Meerut','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Ch. Charan Singh University','school'] = 'Chaudhary Charan Singh University'
resumes.loc[resumes.schoolName=='Ch. Charan Singh University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Ramrao Adik Institute of Technology','school'] = 'Ramrao Adik Institute of Technology'
resumes.loc[resumes.schoolName=='Ramrao Adik Institute of Technology','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Symbiosis Institute of Management Studies','school'] = 'Symbiosis Institute of Management Studies'
resumes.loc[resumes.schoolName=='Symbiosis Institute of Management Studies','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Indraprastha University','school'] = 'Guru Gobind Singh Indraprastha University'
resumes.loc[resumes.schoolName=='Indraprastha University','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Ggsipu','school'] = 'Guru Gobind Singh Indraprastha University'
resumes.loc[resumes.schoolName=='Ggsipu','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Bannari Amman Institute of Technology','school'] = 'Bannari Amman Institute of Technology'
resumes.loc[resumes.schoolName=='Bannari Amman Institute of Technology','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Sri Jayachamarajendra College of Engineering','school'] = 'Sri Jayachamarajendra College of Engineering'
resumes.loc[resumes.schoolName=='Sri Jayachamarajendra College of Engineering','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Vidyalankar Institute of Technology','school'] = 'Vidyalankar Institute of Technology'
resumes.loc[resumes.schoolName=='Vidyalankar Institute of Technology','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Uqam','school'] = 'Université du Québec à Montréal'
resumes.loc[resumes.schoolName=='Uqam','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='Budapest University of Technology','school'] = 'Budapest University of Technology and Economics'
resumes.loc[resumes.schoolName=='Budapest University of Technology','Nation'] = 'hu'

resumes.loc[resumes.schoolName=='Budapest Metropolitan University','school'] = 'Budapesti Metropolitan Egyetem'
resumes.loc[resumes.schoolName=='Budapest Metropolitan University','Nation'] = 'hu'

resumes.loc[resumes.schoolName=='Pontifical Catholic University of Rio Grande Do Sul','school'] = 'Pontifícia Universidade Católica do Rio Grande do Sul'
resumes.loc[resumes.schoolName=='Pontifical Catholic University of Rio Grande Do Sul','Nation'] = 'br'

resumes.loc[resumes.schoolName=='Pontificia Universidad Católica De Valparaíso','school'] = 'Pontifical Catholic University of Valparaíso'
resumes.loc[resumes.schoolName=='Pontificia Universidad Católica De Valparaíso','Nation'] = 'cl'

resumes.loc[resumes.schoolName=='Ufrj','school'] = 'Universidade Federal do Rio de Janeiro'
resumes.loc[resumes.schoolName=='Ufrj','Nation'] = 'br'

resumes.loc[resumes.schoolName=='Unisinos','school'] = 'Universidade do Vale do Rio dos Sinos'
resumes.loc[resumes.schoolName=='Unisinos','Nation'] = 'br'

resumes.loc[resumes.schoolName=='Moscow State Technical University','school'] = 'Bauman Moscow State Technical University'
resumes.loc[resumes.schoolName=='Moscow State Technical University','Nation'] = 'ru'

resumes.loc[resumes.schoolName=='Itesm','school'] = 'Tecnológico de Monterrey'
resumes.loc[resumes.schoolName=='Itesm','Nation'] = 'mx'
resumes.loc[resumes.schoolName=='Monterrey Institute of Technology','school'] = 'Tecnológico de Monterrey'
resumes.loc[resumes.schoolName=='Monterrey Institute of Technology','Nation'] = 'mx'
resumes.loc[resumes.schoolName=='Instituto Tecnológico De Monterrey','school'] = 'Tecnológico de Monterrey'
resumes.loc[resumes.schoolName=='Instituto Tecnológico De Monterrey','Nation'] = 'mx'
resumes.loc[resumes.schoolName=='Instituto Tecnológico Y De Estudios Superiores De Monterrey','school'] = 'Tecnológico de Monterrey'
resumes.loc[resumes.schoolName=='Instituto Tecnológico Y De Estudios Superiores De Monterrey','Nation'] = 'mx'
resumes.loc[resumes.schoolName=='Tec De Monterrey','school'] = 'Tecnológico de Monterrey'
resumes.loc[resumes.schoolName=='Tec De Monterrey','Nation'] = 'mx'
resumes.loc[resumes.schoolName=='Tecnológico De Monterrey, Campus Monterrey','school'] = 'Tecnológico de Monterrey'
resumes.loc[resumes.schoolName=='Tecnológico De Monterrey, Campus Monterrey','Nation'] = 'mx'

resumes.loc[resumes.schoolName=='Technion','school'] = 'Technion Israel Institute of Technology'
resumes.loc[resumes.schoolName=='Technion','Nation'] = 'il'

resumes.loc[resumes.schoolName=='Hec School of Management Paris','school'] = 'HEC Paris'
resumes.loc[resumes.schoolName=='Hec School of Management Paris','Nation'] = 'fr'

resumes.loc[resumes.schoolName=='University of Leuven','school'] = 'Katholieke Universiteit Leuven'
resumes.loc[resumes.schoolName=='University of Leuven','Nation'] = 'be'

resumes.loc[resumes.schoolName=='Hec Lausanne','school'] = 'University of Lausanne'
resumes.loc[resumes.schoolName=='Hec Lausanne','Nation'] = 'ch'

resumes.loc[resumes.schoolName=='Ecole Polytechnique Fédérale De Lausanne','school'] = 'École Polytechnique Fédérale de Lausanne'
resumes.loc[resumes.schoolName=='Ecole Polytechnique Fédérale De Lausanne','Nation'] = 'ch'

resumes.loc[resumes.schoolName=='Lehman College of The City University of New York','school'] = 'CUNY Lehman College'
resumes.loc[resumes.schoolName=='Lehman College of The City University of New York','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Lehman College, City University of New York','school'] = 'CUNY Lehman College'
resumes.loc[resumes.schoolName=='Lehman College, City University of New York','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Lehman College, Cuny','school'] = 'CUNY Lehman College'
resumes.loc[resumes.schoolName=='Lehman College, Cuny','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Linkoping University','school'] = 'Linköping University'
resumes.loc[resumes.schoolName=='Linkoping University','Nation'] = 'se'
resumes.loc[resumes.schoolName=='Linköping Uni.','school'] = 'Linköping University'
resumes.loc[resumes.schoolName=='Linköping Uni.','Nation'] = 'se'

resumes.loc[resumes.schoolName=='Jönköping International Business School, Jönköping University','school'] = 'Jönköping University'
resumes.loc[resumes.schoolName=='Jönköping International Business School, Jönköping University','Nation'] = 'se'

resumes.loc[resumes.schoolName=='Duke University - The Fuqua School of Business','school'] = 'Duke University'
resumes.loc[resumes.schoolName=='Duke University - The Fuqua School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Duke University, Fuqua School of Business','school'] = 'Duke University'
resumes.loc[resumes.schoolName=='Duke University, Fuqua School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Suffolk University Law School','school'] = 'Suffolk University'
resumes.loc[resumes.schoolName=='Suffolk University Law School','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Suffolk University, Sawyer Business School','school'] = 'Suffolk University'
resumes.loc[resumes.schoolName=='Suffolk University, Sawyer Business School','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Columbia College, Columbia University','school'] = 'Columbia University in the City of New York'
resumes.loc[resumes.schoolName=='Columbia College, Columbia University','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Columbia University Graduate School of Journalism','school'] = 'Columbia University in the City of New York'
resumes.loc[resumes.schoolName=='Columbia University Graduate School of Journalism','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Columbia University School of Nursing','school'] = 'Columbia University in the City of New York'
resumes.loc[resumes.schoolName=='Columbia University School of Nursing','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Cornell University College of Engineering','school'] = 'Cornell University'
resumes.loc[resumes.schoolName=='Cornell University College of Engineering','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Cornell University School of Hotel Administration','school'] = 'Cornell University'
resumes.loc[resumes.schoolName=='Cornell University School of Hotel Administration','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Cornell University, College of Agriculture And Life Sciences','school'] = 'Cornell University'
resumes.loc[resumes.schoolName=='Cornell University, College of Agriculture And Life Sciences','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Cornell University, Johnson Graduate School of Management','school'] = 'Cornell University'
resumes.loc[resumes.schoolName=='Cornell University, Johnson Graduate School of Management','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Harvard Graduate School of Design','school'] = 'Harvard University'
resumes.loc[resumes.schoolName=='Harvard Graduate School of Design','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Harvard T.H. Chan School of Public Health','school'] = 'Harvard University'
resumes.loc[resumes.schoolName=='Harvard T.H. Chan School of Public Health','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Harvard University Graduate School of Education','school'] = 'Harvard University'
resumes.loc[resumes.schoolName=='Harvard University Graduate School of Education','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Harvard University, John F. Kennedy School of Government','school'] = 'Harvard University'
resumes.loc[resumes.schoolName=='Harvard University, John F. Kennedy School of Government','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Harvard College','school'] = 'Harvard University'
resumes.loc[resumes.schoolName=='Harvard College','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Louisiana State University-Shreveport','school'] = 'Lsu Shreveport'
resumes.loc[resumes.schoolName=='Louisiana State University-Shreveport','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Uw Milwaukee','school'] = 'University of Wisconsin-Milwaukee'
resumes.loc[resumes.schoolName=='Uw Milwaukee','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Uw-River Falls','school'] = 'University of Wisconsin-River Falls'
resumes.loc[resumes.schoolName=='Uw-River Falls','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Uw-Oshkosh','school'] = 'University of Wisconsin-Oshkosh'
resumes.loc[resumes.schoolName=='Uw-Oshkosh','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Uw-Madison','school'] = 'University of Wisconsin-Madison'
resumes.loc[resumes.schoolName=='Uw-Madison','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University Wisconsin','school'] = 'University of Wisconsin-Madison'
resumes.loc[resumes.schoolName=='University Wisconsin','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Uw Parkside','school'] = 'University of Wisconsin-Parkside'
resumes.loc[resumes.schoolName=='Uw Parkside','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Elon University, Martha And Spencer Love School of Business','school'] = 'Elon University'
resumes.loc[resumes.schoolName=='Elon University, Martha And Spencer Love School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Elon University School of Law','school'] = 'Elon University'
resumes.loc[resumes.schoolName=='Elon University School of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Uw Stevens Point','school'] = 'University of Wisconsin-Stevens Point'
resumes.loc[resumes.schoolName=='Uw Stevens Point','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Uw-Stevens Point','school'] = 'University of Wisconsin-Stevens Point'
resumes.loc[resumes.schoolName=='Uw-Stevens Point','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Uw Stout','school'] = 'University of Wisconsin-Stout'
resumes.loc[resumes.schoolName=='Uw Stout','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Uw-Stout','school'] = 'University of Wisconsin-Stout'
resumes.loc[resumes.schoolName=='Uw-Stout','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Uw Whitewater','school'] = 'University of Wisconsin-Whitewater'
resumes.loc[resumes.schoolName=='Uw Whitewater','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Uw-Whitewater','school'] = 'University of Wisconsin-Whitewater'
resumes.loc[resumes.schoolName=='Uw-Whitewater','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Uw-Eau Claire','school'] = 'University of Wisconsin-Eau Claire'
resumes.loc[resumes.schoolName=='Uw-Eau Claire','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Uw-Green Bay','school'] = 'University of Wisconsin-Green Bay'
resumes.loc[resumes.schoolName=='Uw-Green Bay','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Uwgb','school'] = 'University of Wisconsin-Green Bay'
resumes.loc[resumes.schoolName=='Uwgb','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Uw-Lacrosse','school'] = 'University of Wisconsin-La Crosse'
resumes.loc[resumes.schoolName=='Uw-Lacrosse','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Grenoble School of Management','school'] = 'Grenoble École de Management'
resumes.loc[resumes.schoolName=='Grenoble School of Management','Nation'] = 'fr'

resumes.loc[resumes.schoolName=='Long Island University C.W. Post Campus','school'] = 'LIU Post'
resumes.loc[resumes.schoolName=='Long Island University C.W. Post Campus','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Long Island University, C.W. Post Campus','school'] = 'LIU Post'
resumes.loc[resumes.schoolName=='Long Island University, C.W. Post Campus','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Ниу Вшэ','school'] = 'National Research University Higher School of Economics'
resumes.loc[resumes.schoolName=='Ниу Вшэ','Nation'] = 'ru'

resumes.loc[resumes.schoolName=='Lomonosov Moscow State University (Msu)','school'] = 'Moscow State University'
resumes.loc[resumes.schoolName=='Lomonosov Moscow State University (Msu)','Nation'] = 'ru'
resumes.loc[resumes.schoolName=='Московский Государственный Университет Имени Ломоносова','school'] = 'Moscow State University'
resumes.loc[resumes.schoolName=='Московский Государственный Университет Имени Ломоносова','Nation'] = 'ru'
resumes.loc[resumes.schoolName=='Московский Государственный Университет Имени М.В.Ломоносова','school'] = 'Moscow State University'
resumes.loc[resumes.schoolName=='Московский Государственный Университет Имени М.В.Ломоносова','Nation'] = 'ru'
resumes.loc[resumes.schoolName=='Мгу Им. М.В. Ломоносова','school'] = 'Moscow State University'
resumes.loc[resumes.schoolName=='Мгу Им. М.В. Ломоносова','Nation'] = 'ru'

resumes.loc[resumes.schoolName=='Lse','school'] = 'The London School of Economics and Political Science'
resumes.loc[resumes.schoolName=='Lse','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='Ljmu','school'] = 'Liverpool John Moores University'
resumes.loc[resumes.schoolName=='Ljmu','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='University of Los Andes','school'] = 'Universidad de Los Andes'
resumes.loc[resumes.schoolName=='University of Los Andes','Nation'] = 'co'

resumes.loc[resumes.schoolName=='Luleå Tekniska Universitet','school'] = 'Luleå University of Technology'
resumes.loc[resumes.schoolName=='Luleå Tekniska Universitet','Nation'] = 'se'

resumes.loc[resumes.schoolName=='University of Leipzig','school'] = 'Leipzig University'
resumes.loc[resumes.schoolName=='University of Leipzig','Nation'] = 'de'

resumes.loc[resumes.schoolName=='University of Manila','school'] = 'The University of Manila'
resumes.loc[resumes.schoolName=='University of Manila','Nation'] = 'ph'
resumes.loc[resumes.schoolName=='Manila University','school'] = 'The University of Manila'
resumes.loc[resumes.schoolName=='Manila University','Nation'] = 'ph'

resumes.loc[resumes.schoolName=='University of Keele','school'] = 'Keele University'
resumes.loc[resumes.schoolName=='University of Keele','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='Goethe University','school'] = 'Goethe-Universität Frankfurt am Main'
resumes.loc[resumes.schoolName=='Goethe University','Nation'] = 'de'
resumes.loc[resumes.schoolName=='Goethe University Frankfurt','school'] = 'Goethe-Universität Frankfurt am Main'
resumes.loc[resumes.schoolName=='Goethe University Frankfurt','Nation'] = 'de'

resumes.loc[resumes.schoolName=='University of Leiden','school'] = 'Leiden University'
resumes.loc[resumes.schoolName=='University of Leiden','Nation'] = 'nl'

resumes.loc[resumes.schoolName=='University of Kent At Canterbury','school'] = 'University of Kent'
resumes.loc[resumes.schoolName=='University of Kent At Canterbury','Nation'] = 'gb'
resumes.loc[resumes.schoolName=='University of Kent, Canterbury','school'] = 'University of Kent'
resumes.loc[resumes.schoolName=='University of Kent, Canterbury','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='University of Istanbul','school'] = 'Istanbul Üniversitesi'
resumes.loc[resumes.schoolName=='University of Istanbul','Nation'] = 'tr'
resumes.loc[resumes.schoolName=='İstanbul University','school'] = 'Istanbul Üniversitesi'
resumes.loc[resumes.schoolName=='İstanbul University','Nation'] = 'tr'
resumes.loc[resumes.schoolName=='İstanbul Üniversitesi','school'] = 'Istanbul Üniversitesi'
resumes.loc[resumes.schoolName=='İstanbul Üniversitesi','Nation'] = 'tr'

resumes.loc[resumes.schoolName=='University of Ibadan, Oyo State','school'] = 'University of Ibadan'
resumes.loc[resumes.schoolName=='University of Ibadan, Oyo State','Nation'] = 'ng'

resumes.loc[resumes.schoolName=='University of Ilorin, Kwara State','school'] = 'University of Ilorin'
resumes.loc[resumes.schoolName=='University of Ilorin, Kwara State','Nation'] = 'ng'
resumes.loc[resumes.schoolName=='University of Ilorin, Ilorin, Kwara State','school'] = 'University of Ilorin'
resumes.loc[resumes.schoolName=='University of Ilorin, Ilorin, Kwara State','Nation'] = 'ng'

resumes.loc[resumes.schoolName=='University of Illinois Champaign','school'] = 'University of Illinois at Urbana-Champaign'
resumes.loc[resumes.schoolName=='University of Illinois Champaign','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Kansas School of Law','school'] = 'University of Kansas'
resumes.loc[resumes.schoolName=='University of Kansas School of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Iowa College of Law','school'] = 'University of Iowa'
resumes.loc[resumes.schoolName=='University of Iowa College of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Cuny Baruch','school'] = 'CUNY Bernard M Baruch College'
resumes.loc[resumes.schoolName=='Cuny Baruch','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Université De Tours','school'] = 'University of Tours'
resumes.loc[resumes.schoolName=='Université De Tours','Nation'] = 'fr'

resumes.loc[resumes.schoolName=='Université Paris 8','school'] = 'Université Paris 8 Vincennes-Saint-Denis'
resumes.loc[resumes.schoolName=='Université Paris 8','Nation'] = 'fr'

resumes.loc[resumes.schoolName=='Université Paris Ouest Nanterre La Défense','school'] = 'Université Paris Nanterre'
resumes.loc[resumes.schoolName=='Université Paris Ouest Nanterre La Défense','Nation'] = 'fr'
resumes.loc[resumes.schoolName=='Université Paris X','school'] = 'Université Paris Nanterre'
resumes.loc[resumes.schoolName=='Université Paris X','Nation'] = 'fr'

resumes.loc[resumes.schoolName=='Université Toulouse Iii Paul Sabatier','school'] = 'Paul Sabatier University'
resumes.loc[resumes.schoolName=='Université Toulouse Iii Paul Sabatier','Nation'] = 'fr'

resumes.loc[resumes.schoolName=='Université Nice-Sophia Antipolis','school'] = 'University of Nice Sophia Antipolis'
resumes.loc[resumes.schoolName=='Université Nice-Sophia Antipolis','Nation'] = 'fr'
resumes.loc[resumes.schoolName=='Université Nice Sophia Antipolis','school'] = 'University of Nice Sophia Antipolis'
resumes.loc[resumes.schoolName=='Université Nice Sophia Antipolis','Nation'] = 'fr'
resumes.loc[resumes.schoolName=='Université De Nice Sophia Antipolis','school'] = 'University of Nice Sophia Antipolis'
resumes.loc[resumes.schoolName=='Université De Nice Sophia Antipolis','Nation'] = 'fr'

resumes.loc[resumes.schoolName=='Université De Technologie De Compiègne','school'] = 'University of Technology of Compiègne'
resumes.loc[resumes.schoolName=='Université De Technologie De Compiègne','Nation'] = 'fr'

resumes.loc[resumes.schoolName=='Beijing University of Posts And Telecommunications (Bupt)','school'] = 'Beijing University of Posts and Telecommunications'
resumes.loc[resumes.schoolName=='Beijing University of Posts And Telecommunications (Bupt)','Nation'] = 'cn'

resumes.loc[resumes.schoolName=='University of Houston Main Campus','school'] = 'University of Houston'
resumes.loc[resumes.schoolName=='University of Houston Main Campus','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Houston-Downtown, College of Business','school'] = 'University of Houston-Downtown'
resumes.loc[resumes.schoolName=='University of Houston-Downtown, College of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Houston-Downtown, Marilyn Davies College of Business','school'] = 'University of Houston-Downtown'
resumes.loc[resumes.schoolName=='University of Houston-Downtown, Marilyn Davies College of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Georgia - Franklin College of Arts And Sciences','school'] = 'University of Georgia'
resumes.loc[resumes.schoolName=='University of Georgia - Franklin College of Arts And Sciences','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Georgia School of Law','school'] = 'University of Georgia'
resumes.loc[resumes.schoolName=='University of Georgia School of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Seton Hall','school'] = 'Seton Hall University'
resumes.loc[resumes.schoolName=='Seton Hall','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Seton Hall University, Stillman School of Business','school'] = 'Seton Hall University'
resumes.loc[resumes.schoolName=='Seton Hall University, Stillman School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Luiss Guido Carli','school'] = 'LUISS Guido Carli'
resumes.loc[resumes.schoolName=='Luiss Guido Carli','Nation'] = 'it'
resumes.loc[resumes.schoolName=='Luiss Guido Carli University','school'] = 'LUISS Guido Carli'
resumes.loc[resumes.schoolName=='Luiss Guido Carli University','Nation'] = 'it'
resumes.loc[resumes.schoolName=='Luiss Business School','school'] = 'LUISS Guido Carli'
resumes.loc[resumes.schoolName=='Luiss Business School','Nation'] = 'it'

resumes.loc[resumes.schoolName=='Lincoln U. Pa','school'] = 'Lincoln University'
resumes.loc[resumes.schoolName=='Lincoln U. Pa','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Lincoln University of Pennsylvania','school'] = 'Lincoln University'
resumes.loc[resumes.schoolName=='Lincoln University of Pennsylvania','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Cuny City College of New York','school'] = 'CUNY City College'
resumes.loc[resumes.schoolName=='Cuny City College of New York','Nation'] = 'us'
resumes.loc[resumes.schoolName=='City University of New York City College','school'] = 'CUNY City College'
resumes.loc[resumes.schoolName=='City University of New York City College','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Cuny Lehman','school'] = 'CUNY Lehman College'
resumes.loc[resumes.schoolName=='Cuny Lehman','Nation'] = 'us'
resumes.loc[resumes.schoolName=='City University of New York-Herbert H. Lehman College','school'] = 'CUNY Lehman College'
resumes.loc[resumes.schoolName=='City University of New York-Herbert H. Lehman College','Nation'] = 'us'

resumes.loc[resumes.schoolName=='한양대학교 Hanyang University','school'] = 'Hanyang University'
resumes.loc[resumes.schoolName=='한양대학교 Hanyang University','Nation'] = 'kr'

resumes.loc[resumes.schoolName=='Suny College of Environmental Science And Forestry','school'] = 'SUNY College of Environmental Science and Forestry'
resumes.loc[resumes.schoolName=='Suny College of Environmental Science And Forestry','Nation'] = 'us'
resumes.loc[resumes.schoolName=='State University of New York College of Environmental Science And Forestry','school'] = 'SUNY College of Environmental Science and Forestry'
resumes.loc[resumes.schoolName=='State University of New York College of Environmental Science And Forestry','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Suny-Esf','school'] = 'SUNY College of Environmental Science and Forestry'
resumes.loc[resumes.schoolName=='Suny-Esf','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Csu Long Beach','school'] = 'California State University-Long Beach'
resumes.loc[resumes.schoolName=='Csu Long Beach','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Csulb','school'] = 'California State University-Long Beach'
resumes.loc[resumes.schoolName=='Csulb','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Cal State University Long Beach','school'] = 'California State University-Long Beach'
resumes.loc[resumes.schoolName=='Cal State University Long Beach','Nation'] = 'us'
resumes.loc[resumes.schoolName=='California State Long Beach','school'] = 'California State University-Long Beach'
resumes.loc[resumes.schoolName=='California State Long Beach','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Csu Channel Islands','school'] = 'California State University-Channel Islands'
resumes.loc[resumes.schoolName=='Csu Channel Islands','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Csu Dominguez Hills','school'] = 'California State University-Dominguez Hills'
resumes.loc[resumes.schoolName=='Csu Dominguez Hills','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Cal State University Dominguez Hills','school'] = 'California State University-Dominguez Hills'
resumes.loc[resumes.schoolName=='Cal State University Dominguez Hills','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Csu Fresno','school'] = 'California State University-Fresno'
resumes.loc[resumes.schoolName=='Csu Fresno','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Cal State University Los Angeles','school'] = 'California State University-Los Angeles'
resumes.loc[resumes.schoolName=='Cal State University Los Angeles','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Cal State University San Bernardino','school'] = 'California State University-San Bernardino'
resumes.loc[resumes.schoolName=='Cal State University San Bernardino','Nation'] = 'us'

resumes.loc[resumes.schoolName=='California State Polytechnic','school'] = 'California State Polytechnic University-Pomona'
resumes.loc[resumes.schoolName=='California State Polytechnic','Nation'] = 'us'
resumes.loc[resumes.schoolName=='California Polytechnic University Pomona','school'] = 'California State Polytechnic University-Pomona'
resumes.loc[resumes.schoolName=='California Polytechnic University Pomona','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Eotvos Lorand University','school'] = 'Eötvös Loránd University'
resumes.loc[resumes.schoolName=='Eotvos Lorand University','Nation'] = 'hu'
resumes.loc[resumes.schoolName=='Eötvös Loránd Tudományegyetem','school'] = 'Eötvös Loránd University'
resumes.loc[resumes.schoolName=='Eötvös Loránd Tudományegyetem','Nation'] = 'hu'

resumes.loc[resumes.schoolName=='Csu Fresno','school'] = 'California State University-Fresno'
resumes.loc[resumes.schoolName=='Csu Fresno','Nation'] = 'us'

resumes.loc[resumes.schoolName=='California University of Pa','school'] = 'California University of Pennsylvania'
resumes.loc[resumes.schoolName=='California University of Pa','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Csu East Bay','school'] = 'California State University-East Bay'
resumes.loc[resumes.schoolName=='Csu East Bay','Nation'] = 'us'
resumes.loc[resumes.schoolName=='California State East Bay','school'] = 'California State University-East Bay'
resumes.loc[resumes.schoolName=='California State East Bay','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Csu Northridge','school'] = 'California State University-Northridge'
resumes.loc[resumes.schoolName=='Csu Northridge','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Csu Stanislaus','school'] = 'California State University-Stanislaus'
resumes.loc[resumes.schoolName=='Csu Stanislaus','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Csu Chico','school'] = 'California State University-Chico'
resumes.loc[resumes.schoolName=='Csu Chico','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Csu, Chico','school'] = 'California State University-Chico'
resumes.loc[resumes.schoolName=='Csu, Chico','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Csusb','school'] = 'California State University-San Bernardino'
resumes.loc[resumes.schoolName=='Csusb','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Bucknellu','school'] = 'Bucknell University'
resumes.loc[resumes.schoolName=='Bucknellu','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Clemson','school'] = 'Clemson University'
resumes.loc[resumes.schoolName=='Clemson','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Ga State University','school'] = 'Georgia State University'
resumes.loc[resumes.schoolName=='Ga State University','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Georgia State','school'] = 'Georgia State University'
resumes.loc[resumes.schoolName=='Georgia State','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Georgia State University Atlanta','school'] = 'Georgia State University'
resumes.loc[resumes.schoolName=='Georgia State University Atlanta','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Daniels College of Business, University of Denver','school'] = 'University of Denver'
resumes.loc[resumes.schoolName=='Daniels College of Business, University of Denver','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Bowling Green State University (Bgsu)','school'] = 'Bowling Green State University-Main Campus'
resumes.loc[resumes.schoolName=='Bowling Green State University (Bgsu)','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Utpb - The University of Texas of The Permian Basin','school'] = 'The University of Texas of the Permian Basin'
resumes.loc[resumes.schoolName=='Utpb - The University of Texas of The Permian Basin','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Darla Moore School of Business','school'] = 'University of South Carolina-Columbia'
resumes.loc[resumes.schoolName=='Darla Moore School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Darla Moore School of Business, University of South Carolina','school'] = 'University of South Carolina-Columbia'
resumes.loc[resumes.schoolName=='Darla Moore School of Business, University of South Carolina','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Carlson School of Management, University of Minnesota','school'] = 'University of Minnesota-Twin Cities'
resumes.loc[resumes.schoolName=='Carlson School of Management, University of Minnesota','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Arizona State University, W. P. Carey School of Business','school'] = 'Arizona State University-Tempe'
resumes.loc[resumes.schoolName=='Arizona State University, W. P. Carey School of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='W. P. Carey School of Business - Asu','school'] = 'Arizona State University-Tempe'
resumes.loc[resumes.schoolName=='W. P. Carey School of Business - Asu','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Arizona State University (Asu)','school'] = 'Arizona State University-Tempe'
resumes.loc[resumes.schoolName=='Arizona State University (Asu)','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Northwestern University, Kellogg School of Management','school'] = 'Northwestern University'
resumes.loc[resumes.schoolName=='Northwestern University, Kellogg School of Management','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Kellogg Graduate School of Management','school'] = 'Northwestern University'
resumes.loc[resumes.schoolName=='Kellogg Graduate School of Management','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Northwestern University Pritzker School of Law','school'] = 'Northwestern University'
resumes.loc[resumes.schoolName=='Northwestern University Pritzker School of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Nus Business School, National University of Singapore','school'] = 'National University of Singapore'
resumes.loc[resumes.schoolName=='Nus Business School, National University of Singapore','Nation'] = 'sg'

resumes.loc[resumes.schoolName=='Nui Maynooth','school'] = 'National University of Ireland Maynooth'
resumes.loc[resumes.schoolName=='Nui Maynooth','Nation'] = 'ie'

resumes.loc[resumes.schoolName=='Bahçeşehir Üniversitesi','school'] = 'Bahçesehir Üniversitesi'
resumes.loc[resumes.schoolName=='Bahçeşehir Üniversitesi','Nation'] = 'tr'

resumes.loc[resumes.schoolName=='Northern University of Malaysia','school'] = 'Universiti Utara Malaysia'
resumes.loc[resumes.schoolName=='Northern University of Malaysia','Nation'] = 'my'

resumes.loc[resumes.schoolName=='A.T. Still University','school'] = 'A T Still University of Health Sciences'
resumes.loc[resumes.schoolName=='A.T. Still University','Nation'] = 'us'
resumes.loc[resumes.schoolName=='A.T. Still University of Health Sciences','school'] = 'A T Still University of Health Sciences'
resumes.loc[resumes.schoolName=='A.T. Still University of Health Sciences','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Okcu','school'] = 'Oklahoma City University'
resumes.loc[resumes.schoolName=='Okcu','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Oklahoma City University School of Law','school'] = 'Oklahoma City University'
resumes.loc[resumes.schoolName=='Oklahoma City University School of Law','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Oklahoma State','school'] = 'Oklahoma State University-Main Campus'
resumes.loc[resumes.schoolName=='Oklahoma State','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Penn State University','school'] = 'Pennsylvania State University-Main Campus'
resumes.loc[resumes.schoolName=='Penn State University','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Pennsylvania State University','school'] = 'Pennsylvania State University-Main Campus'
resumes.loc[resumes.schoolName=='Pennsylvania State University','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Penn State Abington','school'] = 'Pennsylvania State University-Penn State Abington'
resumes.loc[resumes.schoolName=='Penn State Abington','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Penn State Altoona','school'] = 'Pennsylvania State University-Penn State Altoona'
resumes.loc[resumes.schoolName=='Penn State Altoona','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Penn State Berks','school'] = 'Pennsylvania State University-Penn State Berks'
resumes.loc[resumes.schoolName=='Penn State Berks','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Penn State Erie, The Behrend College','school'] = 'Pennsylvania State University-Penn State Erie-Behrend College'
resumes.loc[resumes.schoolName=='Penn State Erie, The Behrend College','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Pucrs - Pontifícia Universidade Católica Do Rio Grande Do Sul','school'] = 'Pontifícia Universidade Católica do Rio Grande do Sul'
resumes.loc[resumes.schoolName=='Pucrs - Pontifícia Universidade Católica Do Rio Grande Do Sul','Nation'] = 'br'

resumes.loc[resumes.schoolName=='Penn State Harrisburg','school'] = 'Pennsylvania State University-Penn State Harrisburg'
resumes.loc[resumes.schoolName=='Penn State Harrisburg','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Psg College of Arts & Science','school'] = 'PSG College of Arts And Science'
resumes.loc[resumes.schoolName=='Psg College of Arts & Science','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Upr Mayaguez','school'] = 'University of Puerto Rico-Mayaguez'
resumes.loc[resumes.schoolName=='Upr Mayaguez','Nation'] = 'pr'
resumes.loc[resumes.schoolName=='University of Puerto Rico At Mayaguez','school'] = 'University of Puerto Rico-Mayaguez'
resumes.loc[resumes.schoolName=='University of Puerto Rico At Mayaguez','Nation'] = 'pr'

resumes.loc[resumes.schoolName=='Psg Tech','school'] = 'PSG College of Technology'
resumes.loc[resumes.schoolName=='Psg Tech','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Poznan University of Economics','school'] = 'Poznan University of Economics and Business'
resumes.loc[resumes.schoolName=='Poznan University of Economics','Nation'] = 'pl'
resumes.loc[resumes.schoolName=='Uniwersytet Ekonomiczny W Poznaniu','school'] = 'Poznan University of Economics and Business'
resumes.loc[resumes.schoolName=='Uniwersytet Ekonomiczny W Poznaniu','Nation'] = 'pl'

resumes.loc[resumes.schoolName=='Uniwersytet Łódzki','school'] = 'Uniwersytet Lódzki'
resumes.loc[resumes.schoolName=='Uniwersytet Łódzki','Nation'] = 'pl'

resumes.loc[resumes.schoolName=='Pepperdine Graziadio Business School','school'] = 'Pepperdine University'
resumes.loc[resumes.schoolName=='Pepperdine Graziadio Business School','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Plattsburgh State University','school'] = 'SUNY College at Plattsburgh'
resumes.loc[resumes.schoolName=='Plattsburgh State University','Nation'] = 'us'
resumes.loc[resumes.schoolName=='State University of New York At Plattsburgh','school'] = 'SUNY College at Plattsburgh'
resumes.loc[resumes.schoolName=='State University of New York At Plattsburgh','Nation'] = 'us'

resumes.loc[resumes.schoolName=='State University of New York At Plattsburgh','school'] = 'SUNY College at Plattsburgh'
resumes.loc[resumes.schoolName=='State University of New York At Plattsburgh','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Suny Binghamton University','school'] = 'Binghamton University'
resumes.loc[resumes.schoolName=='Suny Binghamton University','Nation'] = 'us'

resumes.loc[resumes.schoolName=='The College At Brockport','school'] = 'SUNY College at Brockport'
resumes.loc[resumes.schoolName=='The College At Brockport','Nation'] = 'us'
resumes.loc[resumes.schoolName=='The College At Brockport State University of New York','school'] = 'SUNY College at Brockport'
resumes.loc[resumes.schoolName=='The College At Brockport State University of New York','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Surrey University','school'] = 'University of Surrey'
resumes.loc[resumes.schoolName=='Surrey University','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='The University of Kent','school'] = 'University of Kent'
resumes.loc[resumes.schoolName=='The University of Kent','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='The University of Reading','school'] = 'University of Reading'
resumes.loc[resumes.schoolName=='The University of Reading','Nation'] = 'gb'
resumes.loc[resumes.schoolName=='Uni. Reading','school'] = 'University of Reading'
resumes.loc[resumes.schoolName=='Uni. Reading','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='The University of Pittsburgh','school'] = 'University of Pittsburgh-Pittsburgh Campus'
resumes.loc[resumes.schoolName=='The University of Pittsburgh','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Pittsburgh, Joseph M. Katz Graduate School of Business','school'] = 'University of Pittsburgh-Pittsburgh Campus'
resumes.loc[resumes.schoolName=='University of Pittsburgh, Joseph M. Katz Graduate School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Osu-Okc','school'] = 'Oklahoma State University-Oklahoma City'
resumes.loc[resumes.schoolName=='Osu-Okc','Nation'] = 'us'

resumes.loc[resumes.schoolName=="St. John'S University, Peter J. Tobin College of Business",'school'] = "St John's University-New York"
resumes.loc[resumes.schoolName=="St. John'S University, Peter J. Tobin College of Business",'Nation'] = 'us'

resumes.loc[resumes.schoolName=='Stanford','school'] = 'Stanford University'
resumes.loc[resumes.schoolName=='Stanford','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Stanford Law School','school'] = 'Stanford University'
resumes.loc[resumes.schoolName=='Stanford Law School','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Stanford University School of Medicine','school'] = 'Stanford University'
resumes.loc[resumes.schoolName=='Stanford University School of Medicine','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Pace University School of Law','school'] = 'Pace University-New York'
resumes.loc[resumes.schoolName=='Pace University School of Law','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Pace University, Dyson College of Arts And Sciences','school'] = 'Pace University-New York'
resumes.loc[resumes.schoolName=='Pace University, Dyson College of Arts And Sciences','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Osun State','school'] = 'Osun State University'
resumes.loc[resumes.schoolName=='Osun State','Nation'] = 'ng'

resumes.loc[resumes.schoolName=='Pelita Harapan University','school'] = 'Universitas Pelita Harapan'
resumes.loc[resumes.schoolName=='Pelita Harapan University','Nation'] = 'id'

resumes.loc[resumes.schoolName=='Peking Uni.','school'] = 'Peking University'
resumes.loc[resumes.schoolName=='Peking Uni.','Nation'] = 'cn'
resumes.loc[resumes.schoolName=='北京大学','school'] = 'Peking University'
resumes.loc[resumes.schoolName=='北京大学','Nation'] = 'cn'

resumes.loc[resumes.schoolName=='Paris 13','school'] = 'Paris 13 University'
resumes.loc[resumes.schoolName=='Paris 13','Nation'] = 'fr'

resumes.loc[resumes.schoolName=='The University of Calgary','school'] = 'University of Calgary'
resumes.loc[resumes.schoolName=='The University of Calgary','Nation'] = 'ca'
resumes.loc[resumes.schoolName=='Haskayne School of Business, University of Calgary','school'] = 'University of Calgary'
resumes.loc[resumes.schoolName=='Haskayne School of Business, University of Calgary','Nation'] = 'ca'
resumes.loc[resumes.schoolName=='Haskayne School of Business','school'] = 'University of Calgary'
resumes.loc[resumes.schoolName=='Haskayne School of Business','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='The University of Dayton','school'] = 'University of Dayton'
resumes.loc[resumes.schoolName=='The University of Dayton','Nation'] = 'us'

resumes.loc[resumes.schoolName=='California Institute of Technology - Caltech','school'] = 'California Institute of Technology'
resumes.loc[resumes.schoolName=='California Institute of Technology - Caltech','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Αριστοτέλειο Πανεπιστήμιο Θεσσαλονίκης','school'] = 'Aristotle University of Thessaloniki'
resumes.loc[resumes.schoolName=='Αριστοτέλειο Πανεπιστήμιο Θεσσαλονίκης','Nation'] = 'gr'

resumes.loc[resumes.schoolName=='Panteion University of Social And Political Sciences','school'] = 'Panteion University'
resumes.loc[resumes.schoolName=='Panteion University of Social And Political Sciences','Nation'] = 'gr'

resumes.loc[resumes.schoolName=='Panjab University Chandigarh','school'] = 'Panjab University'
resumes.loc[resumes.schoolName=='Panjab University Chandigarh','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Panjab University, Chandigarh','school'] = 'Panjab University'
resumes.loc[resumes.schoolName=='Panjab University, Chandigarh','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Osmania','school'] = 'Osmania University'
resumes.loc[resumes.schoolName=='Osmania','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Osmania University Hyderabad','school'] = 'Osmania University'
resumes.loc[resumes.schoolName=='Osmania University Hyderabad','Nation'] = 'in'
resumes.loc[resumes.schoolName=='University College of Engineering, Osmania University','school'] = 'Osmania University'
resumes.loc[resumes.schoolName=='University College of Engineering, Osmania University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Sri Krishna College of Engineering & Technology','school'] = 'Sri Krishna College of Engineering And Technology'
resumes.loc[resumes.schoolName=='Sri Krishna College of Engineering & Technology','Nation'] = 'in'

resumes.loc[resumes.schoolName=='University of Abertay Dundee','school'] = 'Abertay University'
resumes.loc[resumes.schoolName=='University of Abertay Dundee','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='Odette School of Business, University of Windsor','school'] = 'University of Windsor'
resumes.loc[resumes.schoolName=='Odette School of Business, University of Windsor','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='Obafemi Awolowo University, Ile-Ife, Osun State','school'] = 'Obafemi Awolowo University'
resumes.loc[resumes.schoolName=='Obafemi Awolowo University, Ile-Ife, Osun State','Nation'] = 'ng'

resumes.loc[resumes.schoolName=='University of Benin, Edo State','school'] = 'University of Benin'
resumes.loc[resumes.schoolName=='University of Benin, Edo State','Nation'] = 'ng'

resumes.loc[resumes.schoolName=='Óbuda University','school'] = 'Óbudai Egyetem'
resumes.loc[resumes.schoolName=='Óbuda University','Nation'] = 'hu'

resumes.loc[resumes.schoolName=='Nyu','school'] = 'New York University'
resumes.loc[resumes.schoolName=='Nyu','Nation'] = 'us'
resumes.loc[resumes.schoolName=='New York University, Steinhardt School of Culture','school'] = 'New York University'
resumes.loc[resumes.schoolName=='New York University, Steinhardt School of Culture','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Nyu School of Law','school'] = 'New York University'
resumes.loc[resumes.schoolName=='Nyu School of Law','Nation'] = 'us'
resumes.loc[resumes.schoolName=='New York University, School of Professional Studies','school'] = 'New York University'
resumes.loc[resumes.schoolName=='New York University, School of Professional Studies','Nation'] = 'us'
resumes.loc[resumes.schoolName=='New York University - Stern School of Business','school'] = 'New York University'
resumes.loc[resumes.schoolName=='New York University - Stern School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Belgrano','school'] = 'Universidad de Belgrano'
resumes.loc[resumes.schoolName=='University of Belgrano','Nation'] = 'ar'

resumes.loc[resumes.schoolName=='Questrom School of Business','school'] = 'Boston University'
resumes.loc[resumes.schoolName=='Questrom School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=="Universitat D'Alacant",'school'] = 'University of Alicante'
resumes.loc[resumes.schoolName=="Universitat D'Alacant",'Nation'] = 'es'

resumes.loc[resumes.schoolName=='University of Northumbria At Newcastle','school'] = 'Northumbria University'
resumes.loc[resumes.schoolName=='University of Northumbria At Newcastle','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='University of Notre Dame - Mendoza College of Business','school'] = 'University of Notre Dame'
resumes.loc[resumes.schoolName=='University of Notre Dame - Mendoza College of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University of Notre Dame, Mendoza College of Business','school'] = 'University of Notre Dame'
resumes.loc[resumes.schoolName=='University of Notre Dame, Mendoza College of Business','Nation'] = 'us'
resumes.loc[resumes.schoolName=='The University of Notre Dame','school'] = 'University of Notre Dame'
resumes.loc[resumes.schoolName=='The University of Notre Dame','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Quinlan School of Business','school'] = 'Loyola University Chicago'
resumes.loc[resumes.schoolName=='Quinlan School of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Queens College, The City University of New York','school'] = 'CUNY Queens College'
resumes.loc[resumes.schoolName=='Queens College, The City University of New York','Nation'] = 'us'

resumes.loc[resumes.schoolName=='State University of New York At Old Westbury','school'] = 'SUNY College at Old Westbury'
resumes.loc[resumes.schoolName=='State University of New York At Old Westbury','Nation'] = 'us'

resumes.loc[resumes.schoolName=='State University of New York (Suny) College At Oswego','school'] = 'SUNY College at Oswego'
resumes.loc[resumes.schoolName=='State University of New York (Suny) College At Oswego','Nation'] = 'us'

resumes.loc[resumes.schoolName=='State University College At Buffalo','school'] = 'University at Buffalo'
resumes.loc[resumes.schoolName=='State University College At Buffalo','Nation'] = 'us'
resumes.loc[resumes.schoolName=='State University of New York College At Buffalo','school'] = 'University at Buffalo'
resumes.loc[resumes.schoolName=='State University of New York College At Buffalo','Nation'] = 'us'
resumes.loc[resumes.schoolName=='The State University of New York At Buffalo','school'] = 'University at Buffalo'
resumes.loc[resumes.schoolName=='The State University of New York At Buffalo','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University At Buffalo (Suny)','school'] = 'University at Buffalo'
resumes.loc[resumes.schoolName=='University At Buffalo (Suny)','Nation'] = 'us'

resumes.loc[resumes.schoolName=='The University of Alabama, Culverhouse College of Business','school'] = 'The University of Alabama'
resumes.loc[resumes.schoolName=='The University of Alabama, Culverhouse College of Business','Nation'] = 'us'

resumes.loc[resumes.schoolName=='State University of New York Empire State College','school'] = 'SUNY Empire State College'
resumes.loc[resumes.schoolName=='State University of New York Empire State College','Nation'] = 'us'
resumes.loc[resumes.schoolName=='State University of New York, Empire State College','school'] = 'SUNY Empire State College'
resumes.loc[resumes.schoolName=='State University of New York, Empire State College','Nation'] = 'us'

resumes.loc[resumes.schoolName=='State University of New York Maritime College','school'] = 'SUNY Maritime College'
resumes.loc[resumes.schoolName=='State University of New York Maritime College','Nation'] = 'us'

resumes.loc[resumes.schoolName=='State University of New York, College At Oneonta','school'] = 'SUNY Oneonta'
resumes.loc[resumes.schoolName=='State University of New York, College At Oneonta','Nation'] = 'us'
resumes.loc[resumes.schoolName=='Suny College At Oneonta','school'] = 'SUNY Oneonta'
resumes.loc[resumes.schoolName=='Suny College At Oneonta','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Las Vegas Nevada','school'] = 'University of Nevada-Las Vegas'
resumes.loc[resumes.schoolName=='University of Las Vegas Nevada','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Albany','school'] = 'SUNY at Albany'
resumes.loc[resumes.schoolName=='University of Albany','Nation'] = 'us'
resumes.loc[resumes.schoolName=='State University At Albany','school'] = 'SUNY at Albany'
resumes.loc[resumes.schoolName=='State University At Albany','Nation'] = 'us'
resumes.loc[resumes.schoolName=='University At Albany (Suny)','school'] = 'SUNY at Albany'
resumes.loc[resumes.schoolName=='University At Albany (Suny)','Nation'] = 'us'

resumes.loc[resumes.schoolName=='University of Alabama In Birmingham','school'] = 'University of Alabama at Birmingham'
resumes.loc[resumes.schoolName=='University of Alabama In Birmingham','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Purchase College, State University of New York','school'] = 'SUNY at Purchase College'
resumes.loc[resumes.schoolName=='Purchase College, State University of New York','Nation'] = 'us'

resumes.loc[resumes.schoolName=='North Carolina A&T University','school'] = 'North Carolina A & T State University'
resumes.loc[resumes.schoolName=='North Carolina A&T University','Nation'] = 'us'
resumes.loc[resumes.schoolName=='North Carolina A&T State University','school'] = 'North Carolina A & T State University'
resumes.loc[resumes.schoolName=='North Carolina A&T State University','Nation'] = 'us'

resumes.loc[resumes.schoolName=='Aarhus School of Business','school'] = 'Aarhus Universitet'
resumes.loc[resumes.schoolName=='Aarhus School of Business','Nation'] = 'dk'
resumes.loc[resumes.schoolName=='University of Aarhus','school'] = 'Aarhus Universitet'
resumes.loc[resumes.schoolName=='University of Aarhus','Nation'] = 'dk'

resumes.loc[resumes.schoolName=='Open University Malaysia','school'] = 'Open University Malaysia'
resumes.loc[resumes.schoolName=='Open University Malaysia','Nation'] = 'my'

resumes.loc[resumes.schoolName=='Ase Bucuresti','school'] = 'Academia de Studii Economice din Bucuresti'
resumes.loc[resumes.schoolName=='Ase Bucuresti','Nation'] = 'ro'
resumes.loc[resumes.schoolName=='Bucharest Academy of Economic Studies','school'] = 'Academia de Studii Economice din Bucuresti'
resumes.loc[resumes.schoolName=='Bucharest Academy of Economic Studies','Nation'] = 'ro'
resumes.loc[resumes.schoolName=='Bucharest University of Economic Studies','school'] = 'Academia de Studii Economice din Bucuresti'
resumes.loc[resumes.schoolName=='Bucharest University of Economic Studies','Nation'] = 'ro'
resumes.loc[resumes.schoolName=='The Bucharest University of Economic Studies','school'] = 'Academia de Studii Economice din Bucuresti'
resumes.loc[resumes.schoolName=='The Bucharest University of Economic Studies','Nation'] = 'ro'

resumes.loc[resumes.schoolName=='Atma Jaya Catholic University','school'] = 'Universitas Katolik Indonesia Atma Jaya'
resumes.loc[resumes.schoolName=='Atma Jaya Catholic University','Nation'] = 'id'
resumes.loc[resumes.schoolName=='Atma Jaya Catholic University of Indonesia','school'] = 'Universitas Katolik Indonesia Atma Jaya'
resumes.loc[resumes.schoolName=='Atma Jaya Catholic University of Indonesia','Nation'] = 'id'

resumes.loc[resumes.schoolName=='Erasmus School of Economics','school'] = 'Erasmus Universiteit Rotterdam'
resumes.loc[resumes.schoolName=='Erasmus School of Economics','Nation'] = 'nl'

resumes.loc[resumes.schoolName=='Tu Chemnitz','school'] = 'Technische Universität Chemnitz'
resumes.loc[resumes.schoolName=='Tu Chemnitz','Nation'] = 'de'

resumes.loc[resumes.schoolName=='Mcgill','school'] = 'McGill University'
resumes.loc[resumes.schoolName=='Mcgill','Nation'] = 'ca'

resumes.loc[resumes.schoolName=='Melbourne University','school'] = 'The University of Melbourne'
resumes.loc[resumes.schoolName=='Melbourne University','Nation'] = 'au'
resumes.loc[resumes.schoolName=='Melbourne Business School','school'] = 'The University of Melbourne'
resumes.loc[resumes.schoolName=='Melbourne Business School','Nation'] = 'au'

resumes.loc[resumes.schoolName=='Czech Technical University','school'] = 'Czech Technical University in Prague'
resumes.loc[resumes.schoolName=='Czech Technical University','Nation'] = 'cz'

resumes.loc[resumes.schoolName=='Czech University of Life Sciences','school'] = 'Czech University of Life Sciences Prague'
resumes.loc[resumes.schoolName=='Czech University of Life Sciences','Nation'] = 'cz'

resumes.loc[resumes.schoolName=='Cusat','school'] = 'Cochin University of Science and Technology'
resumes.loc[resumes.schoolName=='Cusat','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Cusat University','school'] = 'Cochin University of Science and Technology'
resumes.loc[resumes.schoolName=='Cusat University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Avadh University','school'] = 'Dr. Ram Manohar Lohia Avadh University'
resumes.loc[resumes.schoolName=='Avadh University','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Vellore Institute','school'] = 'Vellore Institute of Technology'
resumes.loc[resumes.schoolName=='Vellore Institute','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Vellore Institute of Technology University','school'] = 'Vellore Institute of Technology'
resumes.loc[resumes.schoolName=='Vellore Institute of Technology University','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Vit University, Vellore','school'] = 'Vellore Institute of Technology'
resumes.loc[resumes.schoolName=='Vit University, Vellore','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Barcelona Graduate School of Economics','school'] = 'Barcelona GSE'
resumes.loc[resumes.schoolName=='Barcelona Graduate School of Economics','Nation'] = 'es'

resumes.loc[resumes.schoolName=='Tu Kaiserslautern','school'] = 'Technische Universität Kaiserslautern'
resumes.loc[resumes.schoolName=='Tu Kaiserslautern','Nation'] = 'de'

resumes.loc[resumes.schoolName=='Victoria University, Melbourne Australia','school'] = 'Victoria University'
resumes.loc[resumes.schoolName=='Victoria University, Melbourne Australia','Nation'] = 'au'

resumes.loc[resumes.schoolName=='Tu Wien','school'] = 'Technische Universität Wien'
resumes.loc[resumes.schoolName=='Tu Wien','Nation'] = 'at'

resumes.loc[resumes.schoolName=='Bilgi University','school'] = 'Istanbul Bilgi Üniversitesi'
resumes.loc[resumes.schoolName=='Bilgi University','Nation'] = 'tr'
resumes.loc[resumes.schoolName=='İstanbul Bilgi Üniversitesi','school'] = 'Istanbul Bilgi Üniversitesi'
resumes.loc[resumes.schoolName=='İstanbul Bilgi Üniversitesi','Nation'] = 'tr'

resumes.loc[resumes.schoolName=='Bocconi','school'] = 'Bocconi University'
resumes.loc[resumes.schoolName=='Bocconi','Nation'] = 'it'
resumes.loc[resumes.schoolName=='Bocconi School of Management','school'] = 'Bocconi University'
resumes.loc[resumes.schoolName=='Bocconi School of Management','Nation'] = 'it'
resumes.loc[resumes.schoolName=="Università Commerciale 'Luigi Bocconi'",'school'] = 'Bocconi University'
resumes.loc[resumes.schoolName=="Università Commerciale 'Luigi Bocconi'",'Nation'] = 'it'

resumes.loc[resumes.schoolName=='Beijing University','school'] = 'Peking University'
resumes.loc[resumes.schoolName=='Beijing University','Nation'] = 'cn'

resumes.loc[resumes.schoolName=='City of Glasgow College','school'] = 'City of Glasgow College'
resumes.loc[resumes.schoolName=='City of Glasgow College','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='The University of Greenwich','school'] = 'University of Greenwich'
resumes.loc[resumes.schoolName=='The University of Greenwich','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='City of Westminster College','school'] = 'City of Westminster College'
resumes.loc[resumes.schoolName=='City of Westminster College','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='Napier Uni.','school'] = 'Edinburgh Napier University'
resumes.loc[resumes.schoolName=='Napier Uni.','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='City of Bristol College','school'] = 'City of Bristol College'
resumes.loc[resumes.schoolName=='City of Bristol College','Nation'] = 'gb'

resumes.loc[resumes.schoolName=='China University of Mining And Technology','school'] = 'China University of Mining And Technology'
resumes.loc[resumes.schoolName=='China University of Mining And Technology','Nation'] = 'cn'

resumes.loc[resumes.schoolName=='Beijing Technology And Business University','school'] = 'Beijing Technology And Business University'
resumes.loc[resumes.schoolName=='Beijing Technology And Business University','Nation'] = 'cn'

resumes.loc[resumes.schoolName=='China University of Political Science And Law','school'] = 'China University of Political Science And Law'
resumes.loc[resumes.schoolName=='China University of Political Science And Law','Nation'] = 'cn'

resumes.loc[resumes.schoolName=='Marseille Université','school'] = 'Aix-Marseille University'
resumes.loc[resumes.schoolName=='Marseille Université','Nation'] = 'fr'

resumes.loc[resumes.schoolName=='Göteborgs Universitet','school'] = 'University of Gothenburg'
resumes.loc[resumes.schoolName=='Göteborgs Universitet','Nation'] = 'se'

resumes.loc[resumes.schoolName=='Nanjing University of Posts And Telecommunications','school'] = 'Nanjing University of Posts And Telecommunications'
resumes.loc[resumes.schoolName=='Nanjing University of Posts And Telecommunications','Nation'] = 'cn'

resumes.loc[resumes.schoolName=='Mälardalen University','school'] = 'Mälardalen University'
resumes.loc[resumes.schoolName=='Mälardalen University','Nation'] = 'se'

resumes.loc[resumes.schoolName=='Munich University of Applied Sciences','school'] = 'Munich University of Applied Sciences'
resumes.loc[resumes.schoolName=='Munich University of Applied Sciences','Nation'] = 'de'

resumes.loc[resumes.schoolName=='University of Technology Munich','school'] = 'Technical University of Munich'
resumes.loc[resumes.schoolName=='University of Technology Munich','Nation'] = 'de'

resumes.loc[resumes.schoolName=='M. S. Ramaiah Institute of Technology','school'] = 'Ramaiah Institute of Technology'
resumes.loc[resumes.schoolName=='M. S. Ramaiah Institute of Technology','Nation'] = 'in'
resumes.loc[resumes.schoolName=='M S Ramaiah Institute of Technology','school'] = 'Ramaiah Institute of Technology'
resumes.loc[resumes.schoolName=='M S Ramaiah Institute of Technology','Nation'] = 'in'
resumes.loc[resumes.schoolName=='Ms Ramaiah Institute of Technology','school'] = 'Ramaiah Institute of Technology'
resumes.loc[resumes.schoolName=='Ms Ramaiah Institute of Technology','Nation'] = 'in'

resumes.loc[resumes.schoolName=='Andalas University','school'] = 'Universitas Andalas'
resumes.loc[resumes.schoolName=='Andalas University','Nation'] = 'id'

resumes.loc[resumes.schoolName=='University of Pretoria/Universiteit Van Pretoria','school'] = 'University of Pretoria'
resumes.loc[resumes.schoolName=='University of Pretoria/Universiteit Van Pretoria','Nation'] = 'za' 

resumes.loc[resumes.schoolName=='University College Cork - National University of Ireland, Cork','school'] = 'University College Cork'
resumes.loc[resumes.schoolName=='University College Cork - National University of Ireland, Cork','Nation'] = 'ie' 

resumes.loc[resumes.schoolName=='연세 대학교, 서울 (Yonsei University, Seoul)','school'] = 'Yonsei University'
resumes.loc[resumes.schoolName=='연세 대학교, 서울 (Yonsei University, Seoul)','Nation'] = 'kr' 

#-----------------------------
# Combine some final schools together that should have been combined
#-----------------------------

resumes.loc[resumes.school=='Teachers College at Columbia University','school'] = 'Columbia University in the City of New York'

resumes.loc[resumes.school=='Dicle Üniversitesi','school'] = 'Dicle University'

resumes.loc[resumes.school=='Dr. A.P.J Abdul Kalam University','school'] = 'Dr. A.P.J. Abdul Kalam Technical University'

resumes.loc[resumes.school=='Duy Tân University','school'] = 'Duy Tan University'

resumes.loc[resumes.school=='Eötvös Loránd Tudományegyetem','school'] = 'Eötvös Loránd University'

resumes.loc[resumes.school=='Franklin & Marshall College','school'] = 'Franklin and Marshall College'

resumes.loc[resumes.school=='Free University of Berlin','school'] = 'Freie Universität Berlin'

resumes.loc[resumes.school=='Gaziantep Üniversitesi','school'] = 'Gaziantep University'

resumes.loc[resumes.school=='Gebze Teknik Üniversitesi','school'] = 'Gebze Technical University'

resumes.loc[resumes.school=='Goethe University Frankfurt','school'] = 'Goethe-Universität Frankfurt am Main'

resumes.loc[resumes.school=='Government College University, Faisalabad','school'] = 'Government College University Faisalabad'

resumes.loc[resumes.school=='Istanbul Teknik Üniversitesi','school'] = 'Istanbul Technical University'

resumes.loc[resumes.school=='Jacobs University','school'] = 'Jacobs University Bremen'

resumes.loc[resumes.school=='Jawaharlal Nehru Technological University Hyderabad','school'] = 'Jawaharlal Nehru Technological University'

resumes.loc[resumes.school=='Johannes Gutenberg University Mainz','school'] = 'Johannes Gutenberg-Universität Mainz'

resumes.loc[resumes.school=='Johannes Kepler Universität Linz','school'] = 'Johannes Kepler University Linz'

resumes.loc[resumes.school=='Kocaeli Üniversitesi','school'] = 'Kocaeli University'

resumes.loc[resumes.school=='Koç Üniversitesi','school'] = 'Koç University'

resumes.loc[resumes.school=='Le Mans Université','school'] = 'Le Mans University'

resumes.loc[resumes.school=='Michigan State University-College of Law','school'] = 'Michigan State University'

resumes.loc[resumes.school=='Necmettin Erbakan Üniversitesi','school'] = 'Necmettin Erbakan University'

resumes.loc[resumes.school=='Politecnico di Torino','school'] = 'Polytechnic University of Turin'

resumes.loc[resumes.school=='Pontifical Catholic University of Peru','school'] = 'Pontificia Universidad Católica del Perú'

resumes.loc[resumes.school=='Queens University','school'] = "Queen's University"

resumes.loc[resumes.school=='Pontifical Catholic University of Peru','school'] = 'Pontificia Universidad Católica del Perú'

resumes.loc[resumes.school=='Rutgers University–New Brunswick','school'] = 'Rutgers University-New Brunswick'

resumes.loc[resumes.school=='Sakarya Üniversitesi','school'] = 'Sakarya University'

#resumes.loc[resumes.school=='Sofia University St. Kliment Ohridski','school'] = 'Sofia University'

resumes.loc[resumes.school=='Technische Universität Braunschweig','school'] = 'Technical University of Braunschweig'

resumes.loc[resumes.school=='Universidad Latina','school'] = 'Universidad Latina de Costa Rica'

resumes.loc[resumes.school=='University of Alaska','school'] = 'University of Alaska Anchorage'

resumes.loc[resumes.school=='University of Colorado','school'] = 'University of Colorado Boulder'

resumes.loc[resumes.school=='University of Costa Rica','school'] = 'Universidad de Costa Rica'

resumes.loc[resumes.school=='Università Degli Studi Di Firenze','school'] = 'University of Florence'

resumes.loc[resumes.school=='Georg-August-Universität Göttingen','school'] = 'University of Göttingen'

resumes.loc[resumes.school=='University of Nevada, Reno','school'] = 'University of Nevada-Reno'

resumes.loc[resumes.school=='University of Oklahoma-Health Sciences Center','school'] = 'University of Oklahoma Health Sciences Center'

resumes.loc[resumes.school=='University of Oklahoma, Norman','school'] = 'University of Oklahoma-Norman Campus'

resumes.loc[resumes.school=='University of Puerto Rico, Río Piedras Campus','school'] = 'University of Puerto Rico-Rio Piedras'

resumes.loc[resumes.school=='Universität St.Gallen','school'] = 'University of St. Gallen'

resumes.loc[resumes.school=='Universität zu Köln','school'] = 'University of Cologne'

resumes.loc[resumes.school=='Universität Basel','school'] = 'University of Basel'

resumes.loc[resumes.school=='Universität Bayreuth','school'] = 'University of Bayreuth'

resumes.loc[resumes.school=='Universität Duisburg-Essen','school'] = 'University of Duisburg-Essen'

resumes.loc[resumes.school=='Universität Konstanz','school'] = 'University of Konstanz'

resumes.loc[resumes.school=='Universität Bremen','school'] = 'University of Bremen'

resumes.loc[resumes.school=='Universität Trier','school'] = 'University of Trier'

resumes.loc[resumes.school=='Université de Montréal','school'] = 'University of Montreal'

resumes.loc[resumes.school=='Université de Sherbrooke','school'] = 'University of Sherbrooke'

resumes.loc[resumes.school=='Université de Nantes','school'] = 'University of Nantes'

resumes.loc[resumes.school=='Uniwersytet Jagiellonski','school'] = 'Jagiellonian University'

resumes.loc[resumes.school=='Univerzita Karlova','school'] = 'Charles University'

resumes.loc[resumes.school=='Universiteit Twente','school'] = 'University of Twente'

resumes.loc[resumes.school=='Universidad de Guadalajara','school'] = 'University of Guadalajara'

resumes.loc[resumes.school=='Universidad de Granada','school'] = 'University of Granada'

resumes.loc[resumes.school=='Universidad de Costa Rica','school'] = 'University of Costa Rica'

resumes.loc[resumes.school=='Universidad de Chile','school'] = 'University of Chile'

resumes.loc[resumes.school=='Universidad de Buenos Aires','school'] = 'University of Buenos Aires'

resumes.loc[resumes.school=='Universidad de Alcalá','school'] = 'University of Alcalá'

#resumes.loc[resumes.school=='Universidad de Palermo','school'] = 'University of Palermo'

resumes.loc[resumes.school=='Universidad de Sevilla','school'] = 'University of Seville'

resumes.loc[resumes.school=='Universidade de Brasília','school'] = 'University of Brasília'

resumes.loc[resumes.school=='Universidade do Minho','school'] = 'University of Minho'

resumes.loc[resumes.school=='Universität Bern','school'] = 'University of Bern'

resumes.loc[resumes.school=='Universität Innsbruck','school'] = 'University of Innsbruck'

resumes.loc[resumes.school=='Universität Hohenheim','school'] = 'University of Hohenheim'

resumes.loc[resumes.school=='Universität Kassel','school'] = 'University of Kassel'

resumes.loc[resumes.school=='Universität Potsdam','school'] = 'University of Potsdam'

resumes.loc[resumes.school=='Universität Regensburg','school'] = 'University of Regensburg'

resumes.loc[resumes.school=='Universität Rostock','school'] = 'University of Rostock'

resumes.loc[resumes.school=='Universität Salzburg','school'] = 'University of Salzburg'

resumes.loc[resumes.school=='Universität Siegen','school'] = 'University of Siegen'

resumes.loc[resumes.school=='Universiteit Antwerpen','school'] = 'University of Antwerp'

resumes.loc[resumes.school=='Universitatea din Bucuresti','school'] = 'University of Bucharest'

resumes.loc[resumes.school=='Universidade de São Paulo','school'] = 'University of São Paulo'

resumes.loc[resumes.school=='Universidad Autónoma de Nuevo León','school'] = 'Autonomous University of Nuevo León'

resumes.loc[resumes.school=='Universidad Politécnica de Cataluña','school'] = 'Polytechnic University of Catalonia'

resumes.loc[resumes.school=='Universidad Nacional de Colombia','school'] = 'National University of Colombia'

resumes.loc[resumes.school=='Universidad Nacional','school'] = 'National University'

resumes.loc[resumes.school=='Technische Universiteit Eindhoven','school'] = 'Eindhoven University of Technology'

resumes.loc[resumes.school=='Latvijas Universitate','school'] = 'University of Latvia'

resumes.loc[resumes.school=='Universiteit Utrecht','school'] = 'Utrecht University'

resumes.loc[resumes.school=='Københavns Universitet','school'] = 'University of Copenhagen'

resumes.loc[resumes.school=='Danmarks Tekniske Universitet','school'] = 'Technical University of Denmark'

resumes.loc[resumes.school=='Università Commerciale Luigi Bocconi','school'] = 'Bocconi University'

resumes.loc[resumes.school=='Goethe-Universität Frankfurt am Main','school'] = 'Goethe University Frankfurt'

resumes.loc[resumes.school=='Rheinische Friedrich-Wilhelms-Universität Bonn','school'] = 'University of Bonn'

resumes.loc[resumes.school=='Debreceni Egyetem','school'] = 'University of Debrecen'

resumes.loc[resumes.school=='Budapesti Corvinus Egyetem','school'] = 'Corvinus University of Budapest'

resumes.loc[resumes.school=='Université Toulouse - Jean Jaurès','school'] = 'University of Toulouse-Jean Jaurès'

resumes.loc[resumes.school=='Pontificia Universidad Católica del Perú','school'] = 'Pontifical Catholic University of Peru'

resumes.loc[resumes.school=='Universiteit Gent','school'] = 'Ghent University'

resumes.loc[resumes.school=='Pontificia Universidad Javeriana','school'] = 'Pontifical Javeriana University'

resumes.loc[resumes.school=='Universidad de Barcelona','school'] = 'University of Barcelona'

resumes.loc[resumes.school=='Universitat de Barcelona','school'] = 'University of Barcelona'

resumes.loc[resumes.school=='Università degli Studi di Milano','school'] = 'University of Milan'

resumes.loc[resumes.school=='Universität Leipzig','school'] = 'Leipzig University'

resumes.loc[resumes.school=='Bergische Universität Wuppertal','school'] = 'University of Wuppertal'

resumes.loc[resumes.school=='Albert-Ludwigs-Universität Freiburg','school'] = 'University of Freiburg'

resumes.loc[resumes.school=='Philipps-Universität Marburg','school'] = 'University of Marburg'

resumes.loc[resumes.school=='Karl-Franzens-Universität Graz','school'] = 'University of Graz'

resumes.loc[resumes.school=='Universiteit Hasselt','school'] = 'Hasselt University'

resumes.loc[resumes.school=='Universität Bielefeld','school'] = 'Bielefeld University'

resumes.loc[resumes.school=='Westfälische Wilhelms-Universität Münster','school'] = 'University of Münster'

resumes.loc[resumes.school=='Vienna University of Economics and Business','school'] = 'Wirtschaftsuniversität Wien'

resumes.loc[resumes.school=='University of Newcastle, Australia','school'] = 'The University of Newcastle'

resumes.loc[resumes.school=='The University of Notre Dame Australia','school'] = 'University of Notre Dame Australia'

resumes.loc[resumes.school=='Antwerp Management School','school'] = 'University of Antwerp'

resumes.loc[resumes.school=='Federal University of Santa Catarina','school'] = 'Universidade Federal de Santa Catarina'

resumes.loc[resumes.school=='Federal University of Paraná','school'] = 'Universidade Federal do Paraná'

resumes.loc[resumes.school=="Federal University of Minas Gerais",'school'] = 'Universidade Federal de Minas Gerais'

resumes.loc[resumes.school=="Federal University of São Carlos",'school'] = 'Universidade Federal de São Carlos'

resumes.loc[resumes.school=='Federal University of Bahia','school'] = 'Universidade Federal da Bahia'

resumes.loc[resumes.school=='Federal University of Ceará','school'] = 'Universidade Federal do Ceará'

resumes.loc[resumes.school=='Getúlio Vargas Foundation','school'] = 'Fundação Getúlio Vargas'

resumes.loc[resumes.school=='University of Campinas','school'] = 'Universidade Estadual de Campinas'

resumes.loc[resumes.school=='Industrial University of Santander','school'] = 'Universidad Industrial de Santander'

resumes.loc[resumes.school=='Antonio Nariño University','school'] = 'Universidad Antonio Nariño'

resumes.loc[resumes.school=='University of Havana','school'] = 'Universidad de La Habana'

resumes.loc[resumes.school=='Charles University in Prague','school'] = 'Charles University'

resumes.loc[resumes.school=='Rheinisch-Westfälische Technische Hochschule Aachen','school'] = 'RWTH Aachen University'

resumes.loc[resumes.school=='TU Dresden','school'] = 'Technische Universität Dresden'

resumes.loc[resumes.school=='Technical University of Dortmund','school'] = 'Technische Universität Dortmund'

resumes.loc[resumes.school=='Ulm University','school'] = 'Universität Ulm'

resumes.loc[resumes.school=='Tallinn University of Technology','school'] = 'Tallinna Tehnikaülikool'

resumes.loc[resumes.school=='University of Tartu','school'] = 'Tartu Ülikool'

resumes.loc[resumes.school=='Minya University','school'] = 'Minia University'

resumes.loc[resumes.school=='Polytechnic University of Valencia','school'] = 'Universidad Politécnica de València'

resumes.loc[resumes.school=='Complutense University of Madrid','school'] = 'Universidad Complutense de Madrid'

resumes.loc[resumes.school=='University of Alicante','school'] = 'Universidad de Alicante'

resumes.loc[resumes.school=='University of Cádiz','school'] = 'Universidad de Cádiz'

resumes.loc[resumes.school=='University of Murcia','school'] = 'Universidad de Murcia'

resumes.loc[resumes.school=='University of Málaga','school'] = 'Universidad de Málaga'

resumes.loc[resumes.school=='University of Navarra','school'] = 'Universidad de Navarra'

resumes.loc[resumes.school=='University of Oviedo','school'] = 'Universidad de Oviedo'

resumes.loc[resumes.school=='University of Valencia','school'] = 'Universidad de Valencia'

resumes.loc[resumes.school=='University of Zaragoza','school'] = 'Universidad de Zaragoza'

resumes.loc[resumes.school=='Comillas Pontifical University','school'] = 'Universidad Pontificia Comillas'

resumes.loc[resumes.school=='King Juan Carlos University','school'] = 'Universidad Rey Juan Carlos'

resumes.loc[resumes.school=='Paris 13 University','school'] = 'Université Paris 13'

resumes.loc[resumes.school=='Université Grenoble Alpes','school'] = 'Grenoble Alpes University'

resumes.loc[resumes.school=='Paris Nanterre University','school'] = 'Université Paris Nanterre'

resumes.loc[resumes.school=='Paris-Dauphine University','school'] = 'Université Paris-Dauphine'

resumes.loc[resumes.school=='Claude Bernard University Lyon 1','school'] = 'Université Claude Bernard Lyon 1'

resumes.loc[resumes.school=='University of Bordeaux','school'] = 'Université de Bordeaux'

resumes.loc[resumes.school=='University of Clermont Auvergne','school'] = 'Université Clermont Auvergne'

resumes.loc[resumes.school=='University Paris 1 Panthéon-Sorbonne','school'] = 'Université Paris 1 Panthéon-Sorbonne'

resumes.loc[resumes.school=='Lyon 2 University','school'] = 'Université Lumière Lyon 2'

resumes.loc[resumes.school=='Jean Monnet University','school'] = 'Université Jean Monnet'

resumes.loc[resumes.school=='Pécsi Tudományegyetem','school'] = 'University of Pécs'

resumes.loc[resumes.school=='Pannon Egyetem','school'] = 'University of Pannonia'

resumes.loc[resumes.school=='Szegedi Tudományegyetem','school'] = 'University of Szeged'

resumes.loc[resumes.school=='Szent István Egyetem','school'] = 'Szent István University'

resumes.loc[resumes.school=='Technion – Israel Institute of Technology','school'] = 'Technion Israel Institute of Technology'

resumes.loc[resumes.school=='Technion - Israel Institute of Technology','school'] = 'Technion Israel Institute of Technology'

resumes.loc[resumes.school=='Kavayitri Bahinabai Chaudhari North Maharashtra University','school'] = 'Kavayitri Bahinabai Chaudhari North Maharashtra University Jalgaon'

resumes.loc[resumes.school=='VIT University','school'] = 'Vellore Institute of Technology'

resumes.loc[resumes.school=='University of Palermo','school'] = 'Università degli Studi di Palermo'

resumes.loc[resumes.school=='University of Parma','school'] = 'Università degli Studi di Parma'

resumes.loc[resumes.school=='University of Pavia','school'] = 'Università degli Studi di Pavia'

resumes.loc[resumes.school=='University of Salerno','school'] = 'Università degli Studi di Salerno'

resumes.loc[resumes.school=='University of Siena','school'] = 'Università degli Studi di Siena'

resumes.loc[resumes.school=='University of Trento','school'] = 'Università degli Studi di Trento'

resumes.loc[resumes.school=='University of Trieste','school'] = 'Università degli Studi di Trieste'

resumes.loc[resumes.school=='Université Libanaise','school'] = 'Lebanese University'

resumes.loc[resumes.school=='National Polytechnic Institute','school'] = 'Instituto Politécnico Nacional'

resumes.loc[resumes.school=='University of Veracruz','school'] = 'Universidad Veracruzana'

resumes.loc[resumes.school=='University of Science, Malaysia','school'] = 'Universiti Sains Malaysia'

resumes.loc[resumes.school=='University of Technology, Malaysia','school'] = 'Universiti Teknologi Malaysia'

resumes.loc[resumes.school=='National University of Malaysia, UKM','school'] = 'Universiti Kebangsaan Malaysia'

resumes.loc[resumes.school=='MARA University of Technology','school'] = 'Universiti Teknologi MARA'

resumes.loc[resumes.school=='Universiti Islam Antarabangsa Malaysia','school'] = 'International Islamic University Malaysia'

resumes.loc[resumes.school=='Eduardo Mondlane University','school'] = 'Universidade Eduardo Mondlane'

resumes.loc[resumes.school=='Universiteit Leiden','school'] = 'Leiden University'

resumes.loc[resumes.school=='Radboud Universiteit','school'] = 'Radboud University'

resumes.loc[resumes.school=='Uniwersytet Warszawski','school'] = 'University of Warsaw'

resumes.loc[resumes.school=='University of Rzeszów','school'] = 'Uniwersytet Rzeszowski'

resumes.loc[resumes.school=='Uniwersytet Zielonogórski','school'] = 'University of Zielona Góra'

resumes.loc[resumes.school=='Universidad de Puerto Rico','school'] = 'University of Puerto Rico-Rio Piedras'

resumes.loc[resumes.school=='Universidade de Coimbra','school'] = 'University of Coimbra'

resumes.loc[resumes.school=='Universidade do Porto','school'] = 'University of Porto'

resumes.loc[resumes.school=='Universidade de Aveiro','school'] = 'University of Aveiro'

resumes.loc[resumes.school=='Catholic University of Portugal','school'] = 'Universidade Católica Portuguesa'

resumes.loc[resumes.school=='Mittuniversitetet','school'] = 'Mid Sweden University'

resumes.loc[resumes.school=='Çanakkale Onsekiz Mart Üniversitesi','school'] = 'Çanakkale Onsekiz Mart University'

resumes.loc[resumes.school=='Süleyman Demirel Üniversitesi','school'] = 'Süleyman Demirel University'

resumes.loc[resumes.school=='Y?ld?z Technical University','school'] = 'Yildiz Technical University'

resumes.loc[resumes.school=='Çanakkale Onsekiz Mart Üniversitesi','school'] = 'Çanakkale Onsekiz Mart University'

resumes.loc[resumes.school=='Manisa Celal Bayar Üniversitesi','school'] = 'Manisa Celal Bayar University'

resumes.loc[resumes.school=='Karadeniz Teknik Üniversitesi','school'] = 'Karadeniz Technical University'

resumes.loc[resumes.school=='Uludag Üniversitesi','school'] = 'Uluda? University'

resumes.loc[resumes.school=='Mimar Sinan Güzel Sanatlar Üniversitesi','school'] = 'Mimar Sinan Fine Arts University'

resumes.loc[resumes.school=='Atatürk Üniversitesi','school'] = 'Atatürk University'

resumes.loc[resumes.school=='Ankara Üniversitesi','school'] = 'Ankara University'

resumes.loc[resumes.school=='Arizona State University','school'] = 'Arizona State University-Tempe'

resumes.loc[resumes.school=='California State Polytechnic University, Pomona','school'] = 'California State Polytechnic University-Pomona'

resumes.loc[resumes.school=='North Carolina A&T State University','school'] = 'North Carolina A & T State University'

resumes.loc[resumes.school=='Pennsylvania State University','school'] = 'Pennsylvania State University-Main Campus'

resumes.loc[resumes.school=='Southern University and A&M College','school'] = 'Southern University and A & M College'

resumes.loc[resumes.school=="St. John's University",'school'] = "St John's University-New York"

resumes.loc[resumes.school=='Tulane University','school'] = 'Tulane University of Louisiana'

resumes.loc[resumes.school=='University of California, Davis','school'] = 'University of California-Davis'

resumes.loc[resumes.school=='University of California, Santa Barbara','school'] = 'University of California-Santa Barbara'

resumes.loc[resumes.school=='University of California, Santa Cruz','school'] = 'University of California-Santa Cruz'

resumes.loc[resumes.school=='University of California San Diego','school'] = 'University of California-San Diego'

resumes.loc[resumes.school=='University of Colorado Denver | Anschutz Medical Campus','school'] = 'University of Colorado Denver/Anschutz Medical Campus'

resumes.loc[resumes.school=='University of Nebraska–Lincoln','school'] = 'University of Nebraska-Lincoln'

#-----------------------------
# Final list of names that are still unmatched
#-----------------------------

stillMissing = pd.DataFrame(resumes[resumes.school.isnull()].groupby('schoolName').size()).reset_index()
stillMissing = stillMissing[stillMissing[0]>=250]
stillMissing.sort_values(0,inplace=True)
stillMissing.to_csv(savePath + "Unassigned_schools.csv")

notMissing = pd.DataFrame(resumes[resumes.school.notnull()].groupby('school').size()).reset_index()
notMissing.sort_values(0,inplace=True)

resumes = resumes[resumes.school.notnull()]

del schoolsPresent
del backupResults
del backupResultsAlready
del backupResultsAlreadyAlready
del backupResultsCWUR

##############################################################################
# Assign majors to groupings (based on groupings from NSSE)
##############################################################################

resumes.reset_index(inplace=True)
del resumes['index']

print("Assign majors to groups.")

def assignMajors(df,majorVar,saveVar):

    df[saveVar] = np.nan
    
    df.loc[df[majorVar].isnull(),saveVar] = "missing"

    df[majorVar] = df[majorVar].apply(lambda x: str(x).lstrip().rstrip())
    df[majorVar] = df[majorVar].apply(lambda x: str(x).replace(".",""))
    df[majorVar] = df[majorVar].apply(lambda x: str(x).replace("  "," "))
    df[majorVar] = df[majorVar].apply(lambda x: str(x).title())


    # Arts and Humanities
    df.loc[df[majorVar].apply(lambda x: str(x).count('Art'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('English'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('History'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Journalism'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Language'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Literature'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Music'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Philosophy'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Speech'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Photo'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Acting'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Theater'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Theatre'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Cinema'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Film'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Drama'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Religious'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Religion'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Theology'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Humanities'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Writing'))>0,saveVar] = 'Arts and Humanities'
    # New additions
    df.loc[df[majorVar].apply(lambda x: str(x).count('Spanish'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('French'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Italian'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('German'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Japan'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Chinese'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Russian'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Linguistics'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Liberal Studies'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Painting'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Sculpture'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Dance'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Illustration'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Architect'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Design'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Animation'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Archaeology'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Biblical'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Vocal Performance'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Classics'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x)=='Bfa'),saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x)=='Mfa'),saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Cultural'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Fashion'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Clothing'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Playwrit'))>0,saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Screenwrit'))>0,saveVar] = 'Arts and Humanities'
    # 2022 additions
    df.loc[df[majorVar].apply(lambda x: str(x)=='Rhetoric And Composition'),saveVar] = 'Arts and Humanities'
    df.loc[df[majorVar].apply(lambda x: str(x)=='Jornalismo'),saveVar] = 'Arts and Humanities'


    # Biological Sciences
    df.loc[df[majorVar].apply(lambda x: str(x).count('Biology'))>0,saveVar] = 'Biological Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Biochem'))>0,saveVar] = 'Biological Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Biophysics'))>0,saveVar] = 'Biological Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Botany'))>0,saveVar] = 'Biological Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Environmental Science'))>0,saveVar] = 'Biological Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Marine Science'))>0,saveVar] = 'Biological Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Life Science'))>0,saveVar] = 'Biological Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Microbiology'))>0,saveVar] = 'Biological Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Bacteriology'))>0,saveVar] = 'Biological Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Zoology'))>0,saveVar] = 'Biological Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Biological'))>0,saveVar] = 'Biological Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Environment'))>0,saveVar] = 'Biological Sciences'
    # New additions
    df.loc[df[majorVar].apply(lambda x: str(x).count('Neuroscience'))>0,saveVar] = 'Biological Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Sustainability'))>0,saveVar] = 'Biological Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Forestry'))>0,saveVar] = 'Biological Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Horticult'))>0,saveVar] = 'Biological Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Ecology'))>0,saveVar] = 'Biological Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Agricult'))>0,saveVar] = 'Biological Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Biotech'))>0,saveVar] = 'Biological Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Psychobiology'))>0,saveVar] = 'Biological Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Food Science'))>0,saveVar] = 'Biological Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Animal Science'))>0,saveVar] = 'Biological Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Bioinform'))>0,saveVar] = 'Biological Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Genetics'))>0,saveVar] = 'Biological Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Physiology'))>0,saveVar] = 'Biological Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Biomed'))>0,saveVar] = 'Biological Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Biostatistics'))>0,saveVar] = 'Biological Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Natural Science'))>0,saveVar] = 'Biological Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Natural Resources'))>0,saveVar] = 'Biological Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Neurobiology'))>0,saveVar] = 'Biological Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Agronomy'))>0,saveVar] = 'Biological Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Animal'))>0,saveVar] = 'Biological Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Atmospheric'))>0,saveVar] = 'Biological Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Bioscience'))>0,saveVar] = 'Biological Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Plant'))>0,saveVar] = 'Biological Sciences'
    
    # Business
    df.loc[df[majorVar].apply(lambda x: str(x).count('Accountancy'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Accounting'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Advertising'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Business'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Buisness'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Commerce'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Financ'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Marketing'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Management'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Merchandising'))>0,saveVar] = 'Business'
    # New additions
    df.loc[df[majorVar].apply(lambda x: str(x).count('Human Resource'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Actuarial'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Entrepreneur'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Bcom'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('BCom'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Real Estate'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Operations'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Supply'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Industrial'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Banking'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Tax'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Strategy'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Organizational Leadership'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Hospitality'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Mba'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Insurance'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Tourism'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Organization'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Human Relations'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Leadership'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Organisation'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Entreprenuer'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Corporate'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Hotel'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Labor Relations'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Employment Relations'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Logistics'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Managerial'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Strategic'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x)=='Bba'),saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x)=='Mis'),saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x)=='Hr'),saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x)=='Bookkeeping'),saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x)=='Customer Service'),saveVar] = 'Business'
    # 2022 additions
    df.loc[df[majorVar].apply(lambda x: str(x).count('Gestão'))>0,saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x)=='Administração De Empresas'),saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x)=='Administração'),saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x)=='Sales And Distribution'),saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x)=='Ciências Contábeis'),saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x)=='Publicidade E Propaganda'),saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x)=='Administración De Empresas'),saveVar] = 'Business'
    df.loc[df[majorVar].apply(lambda x: str(x)=='Logística'),saveVar] = 'Business'
    

    # Communication
    df.loc[df[majorVar].apply(lambda x: str(x).count('Broadcast'))>0,saveVar] = 'Communication'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Communication'))>0,saveVar] = 'Communication'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Public Relations'))>0,saveVar] = 'Communication'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Media'))>0,saveVar] = 'Communication'
    # New additions
    df.loc[df[majorVar].apply(lambda x: str(x).count('Multimedia'))>0,saveVar] = 'Communication'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Television'))>0,saveVar] = 'Communication'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Telecomm'))>0,saveVar] = 'Communication'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Audio Production'))>0,saveVar] = 'Communication'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Journalism'))>0,saveVar] = 'Communication'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Speech'))>0,saveVar] = 'Communication'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Media'))>0,saveVar] = 'Communication'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Event Planning'))>0,saveVar] = 'Communication'
    df.loc[df[majorVar].apply(lambda x: str(x)=='Esl'),saveVar] = 'Communication'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Publishing'))>0,saveVar] = 'Communication'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Video Production'))>0,saveVar] = 'Communication'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Translation'))>0,saveVar] = 'Communication'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Visual Effects'))>0,saveVar] = 'Communication'
    

    # Engineering
    df.loc[df[majorVar].apply(lambda x: str(x).count('Engineer'))>0,saveVar] = 'Engineering'
    # New additions
    df.loc[df[majorVar].apply(lambda x: str(x)=='Ece'),saveVar] = 'Engineering'
    df.loc[df[majorVar].apply(lambda x: str(x)=='Ee'),saveVar] = 'Engineering'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Electronic'))>0,saveVar] = 'Engineering'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Bioengineering'))>0,saveVar] = 'Engineering'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Mechanical'))>0,saveVar] = 'Engineering'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Electrical'))>0,saveVar] = 'Engineering'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Welding'))>0,saveVar] = 'Engineering'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Aeronautic'))>0,saveVar] = 'Engineering'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Mech Eng'))>0,saveVar] = 'Engineering'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Mechatronics'))>0,saveVar] = 'Engineering'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Materials'))>0,saveVar] = 'Engineering'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Eee'))>0,saveVar] = 'Engineering'
    # 2022 additions
    df.loc[df[majorVar].apply(lambda x: str(x).count('Engenharia'))>0,saveVar] = 'Engineering'


    # Education
    df.loc[df[majorVar].apply(lambda x: str(x).count('Education'))>0,saveVar] = 'Education'
    # New additions
    df.loc[df[majorVar].apply(lambda x: str(x).count('Teach'))>0,saveVar] = 'Education'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Curriculum'))>0,saveVar] = 'Education'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Elementary'))>0,saveVar] = 'Education'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Early Childhood'))>0,saveVar] = 'Education'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Child Development'))>0,saveVar] = 'Education'


    # Physical Sciences
    df.loc[df[majorVar].apply(lambda x: str(x).count('Astronomy'))>0,saveVar] = 'Physical Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Meteorology'))>0,saveVar] = 'Physical Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Chemistry'))>0,saveVar] = 'Physical Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Earth Science'))>0,saveVar] = 'Physical Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Geology'))>0,saveVar] = 'Physical Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Math'))>0,saveVar] = 'Physical Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Physics'))>0,saveVar] = 'Physical Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Statistics'))>0,saveVar] = 'Physical Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Physical Science'))>0,saveVar] = 'Physical Sciences'
    # New additions
    df.loc[df[majorVar].apply(lambda x: str(x).count('Computational'))>0,saveVar] = 'Physical Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Astrophysics'))>0,saveVar] = 'Physical Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Analytics'))>0,saveVar] = 'Physical Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Quantitative'))>0,saveVar] = 'Physical Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Geoscience'))>0,saveVar] = 'Physical Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Geophysics'))>0,saveVar] = 'Physical Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Geological'))>0,saveVar] = 'Physical Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Geochemistry'))>0,saveVar] = 'Physical Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('General Science'))>0,saveVar] = 'Physical Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Science'))>0,saveVar] = 'Physical Sciences'
    # 2022 additions
    df.loc[df[majorVar].apply(lambda x: str(x).count('Química'))>0,saveVar] = 'Physical Sciences'

    
    # Health Professions
    df.loc[df[majorVar].apply(lambda x: str(x).count('Health Technology'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Medic'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Dent'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Laboratory'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Veterinar'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Nursing'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Nurse'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Pharmac'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Therapy'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Public Health'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Health Sciences'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x)=='Bsn'),saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x)=='Rn'),saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x)=='Cna'),saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x)=='Emt'),saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x)=='Lpn'),saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Phlebot'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Immun'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Allied Health'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Physician Assistant'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Exercise Science'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Healthcare'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Health Care'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Health Service'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Mental Health'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Nutrition'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Dietetics'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Epidemiology'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Radiology'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Pre-Med'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Pre-Health'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Pre-Vet'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Premed'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Physical Therapist'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Athletic Training'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Behavior Analysis'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Sports and Fitness'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Sports And Fitness'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Health and Wellness'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Human Development'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Health Studies'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Clinical'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Exercise'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Health'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Hospital Administration'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Kinesiology'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Occupational'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Paramedic'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Personal Train'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Physician'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Physio'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Radiography'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Radiologic'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Rehabilitation'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Bpharm'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Respiratory Care'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Optometry'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Pediatrics'))>0,saveVar] = 'Health Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Audiology'))>0,saveVar] = 'Health Service'
    # 2022 additions
    df.loc[df[majorVar].apply(lambda x: str(x)=='Enfermagem'),saveVar] = 'Health Service'

    # Social Service Professions
    df.loc[df[majorVar].apply(lambda x: str(x).count('Criminal Justice'))>0,saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Criminology'))>0,saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Forensics'))>0,saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Justice'))>0,saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Urban Planning'))>0,saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Law'))>0,saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Military Science'))>0,saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Legal'))>0,saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Library'))>0,saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Archival Science'))>0,saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Paralegal'))>0,saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Regional Planning'))>0,saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Social Work'))>0,saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Public Policy'))>0,saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Urban Planning'))>0,saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Public Policy'))>0,saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Public Safety'))>0,saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Public Administration'))>0,saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Human Services'))>0,saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Police'))>0,saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Forensic'))>0,saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Counseling'))>0,saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Fire Science'))>0,saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Homeland Security'))>0,saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Public Affairs'))>0,saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Juris Doctor'))>0,saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Socialwork'))>0,saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Social Service'))>0,saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Jd'))>0,saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Criminal'))>0,saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Social Care'))>0,saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Public Service'))>0,saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Welfare'))>0,saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Jurisprudence'))>0,saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Human Rights'))>0,saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Museum'))>0,saveVar] = 'Social Service'
    # 2022 additions
    df.loc[df[majorVar].apply(lambda x: str(x)=='Direito'),saveVar] = 'Social Service'
    df.loc[df[majorVar].apply(lambda x: str(x)=='Arquitetura E Urbanismo'),saveVar] = 'Social Service'

    # New additions
    # Social Sciences
    df.loc[df[majorVar].apply(lambda x: str(x).count('Anthropology'))>0,saveVar] = 'Social Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Econom'))>0,saveVar] = 'Social Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Ethnic Studies'))>0,saveVar] = 'Social Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Geography'))>0,saveVar] = 'Social Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Political Science'))>0,saveVar] = 'Social Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Government'))>0,saveVar] = 'Social Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('International Relations'))>0,saveVar] = 'Social Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Psycholog'))>0,saveVar] = 'Social Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Psycolog'))>0,saveVar] = 'Social Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Pyschology'))>0,saveVar] = 'Social Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Social Work'))>0,saveVar] = 'Social Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Sociology'))>0,saveVar] = 'Social Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Gender Studies'))>0,saveVar] = 'Social Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Social Science'))>0,saveVar] = 'Social Sciences'
    # New additions
    df.loc[df[majorVar].apply(lambda x: str(x).count('Politic'))>0,saveVar] = 'Social Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('International'))>0,saveVar] = 'Social Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count("Women\'S Studies"))>0,saveVar] = 'Social Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count("Behavioral Science"))>0,saveVar] = 'Social Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count("American"))>0,saveVar] = 'Social Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count("Global"))>0,saveVar] = 'Social Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count("Cognitive Science"))>0,saveVar] = 'Social Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count("Asian Studies"))>0,saveVar] = 'Social Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count("European Studies"))>0,saveVar] = 'Social Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count("Urban Studies"))>0,saveVar] = 'Social Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count("Decision Science"))>0,saveVar] = 'Social Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Foreign'))>0,saveVar] = 'Social Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Family And Consumer Sciences'))>0,saveVar] = 'Social Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Development Studies'))>0,saveVar] = 'Social Sciences'
    # 2022 additions
    df.loc[df[majorVar].apply(lambda x: str(x)=='Psicologia'),saveVar] = 'Social Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x)=='Psicología'),saveVar] = 'Social Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Econôm'))>0,saveVar] = 'Social Sciences'
    df.loc[df[majorVar].apply(lambda x: str(x)=='Relações Internacionais'),saveVar] = 'Social Sciences'
    
    # Technology
    df.loc[df[majorVar].apply(lambda x: str(x).count('Data'))>0,saveVar] = 'Technology'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Technology'))>0,saveVar] = 'Technology'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Computer'))>0,saveVar] = 'Technology'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Software'))>0,saveVar] = 'Technology'
    df.loc[df[majorVar].apply(lambda x: str(x).count('System'))>0,saveVar] = 'Technology'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Network'))>0,saveVar] = 'Technology'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Cyber'))>0,saveVar] = 'Technology'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Web'))>0,saveVar] = 'Technology'
    # New additions
    df.loc[df[majorVar].apply(lambda x: str(x).count('Information'))>0,saveVar] = 'Technology'
    df.loc[df[majorVar].apply(lambda x: str(x)=='It'),saveVar] = 'Technology'
    df.loc[df[majorVar].apply(lambda x: str(x)=='Cs'),saveVar] = 'Technology'
    df.loc[df[majorVar].apply(lambda x: str(x)=='Cis'),saveVar] = 'Technology'
    df.loc[df[majorVar].apply(lambda x: str(x)=='MTech'),saveVar] = 'Technology'
    df.loc[df[majorVar].apply(lambda x: str(x)=='Mtech'),saveVar] = 'Technology'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Cse'))>0,saveVar] = 'Technology'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Computing'))>0,saveVar] = 'Technology'
    df.loc[df[majorVar].apply(lambda x: str(x).count('CompSc'))>0,saveVar] = 'Technology'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Compsc'))>0,saveVar] = 'Technology'
    df.loc[df[majorVar].apply(lambda x: str(x).count('It Program'))>0,saveVar] = 'Technology'
    df.loc[df[majorVar].apply(lambda x: str(x).count('It Security'))>0,saveVar] = 'Technology'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Informatics'))>0,saveVar] = 'Technology'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Machine Learning'))>0,saveVar] = 'Technology'
    df.loc[df[majorVar].apply(lambda x: str(x).count('BTech'))>0,saveVar] = 'Technology'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Btech'))>0,saveVar] = 'Technology'
    df.loc[df[majorVar].apply(lambda x: str(x).count('MTech'))>0,saveVar] = 'Technology'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Bca'))>0,saveVar] = 'Technology'
    df.loc[df[majorVar].apply(lambda x: str(x).count('Mca'))>0,saveVar] = 'Technology'
    # 2022 additions
    df.loc[df[majorVar].apply(lambda x: str(x)=='Tecnologia'),saveVar] = 'Technology'
    df.loc[df[majorVar].apply(lambda x: str(x)=='Informática'),saveVar] = 'Technology'
    df.loc[df[majorVar].apply(lambda x: str(x)=='Ciência Da Computação'),saveVar] = 'Technology'
    df.loc[df[majorVar].apply(lambda x: str(x)=='Sistemas De Informação'),saveVar] = 'Technology'
    df.loc[df[majorVar].apply(lambda x: str(x)=='Informatique'),saveVar] = 'Technology'
    df.loc[df[majorVar].apply(lambda x: str(x)=='Tecnologia Da Informação'),saveVar] = 'Technology'

    # Other
    df.loc[df[saveVar].isnull() & df[majorVar].notnull(),saveVar] = 'Other'

    return df

resumes = assignMajors(resumes,'majorName','grpMajor')

missingMajor1 = pd.DataFrame(resumes[resumes.grpMajor=='Other'].groupby('majorName').size()).reset_index()
missingMajor1 = missingMajor1[missingMajor1[0]>=100]
missingMajor1.sort_values(0,inplace=True)
missingMajor1.to_csv(savePath + "Unassigned_majors_1.csv")

##############################################################################
# Clean up degrees
##############################################################################

print("Clean up degrees.")

def assignDegrees(df,degreeVar,saveVar):

    df[saveVar] = np.nan

    df.loc[df[degreeVar].isnull(),saveVar] = "missing"
    df.loc[df[degreeVar].apply(lambda x: str(x)=='nan'),saveVar] = 'missing'
    df.loc[df[degreeVar].apply(lambda x: str(x)==""),saveVar] = 'missing'
        
    df[degreeVar] = df[degreeVar].apply(lambda x: str(x).lower())
    df[degreeVar] = df[degreeVar].apply(lambda x: str(x).replace("'",""))
    df[degreeVar] = df[degreeVar].apply(lambda x: str(x).replace("-",""))
    df[degreeVar] = df[degreeVar].apply(lambda x: str(x).replace("/",""))
    df[degreeVar] = df[degreeVar].apply(lambda x: str(x).replace("(",""))
    df[degreeVar] = df[degreeVar].apply(lambda x: str(x).replace(")",""))
    df[degreeVar] = df[degreeVar].apply(lambda x: str(x).replace("hons",""))
    df[degreeVar] = df[degreeVar].apply(lambda x: str(x).replace("honors",""))
    df[degreeVar] = df[degreeVar].apply(lambda x: str(x).replace("honours",""))
    df[degreeVar] = df[degreeVar].apply(lambda x: str(x).lstrip().rstrip())
    
    # Bachelors
    df.loc[df[degreeVar].apply(lambda x: str(x).count('bachelor')>0),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('(ba)')>0),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('(bs)')>0),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('ba ')>0),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('baccalaureate')>0),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('bs ')>0),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('bsc in')>0),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('btec')>0),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('bfa')>0),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('be in')>0),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('bsc')>0),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('bcomm')>0),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('baas')>0),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('bsc')>0),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('bs ')>0),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('bsc ')>0),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('bcom ')>0),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('b tech')>0),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='bsba'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='babs'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='ba'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='bs'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='be'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='btech'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='bba'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='bcom'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='beng'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='bca'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='bcom'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='bsn'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='btec'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='b sc'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='b s'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='b a'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='bse'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='b e'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='b ed'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='ab'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='b com'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='bsee'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='bas'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='bed'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='bbm'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='b eng'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='bsme'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='bbm'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='basc'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='bpharm'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='bach'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='bsa'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='bscs'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='bbs'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='bsw'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='barch'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=="baccalauréat"),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='llb'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='mbbs'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='ba,'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='bs,'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='be '),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='bm'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='bgs'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='bms'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='bscit'),saveVar] = 'BACHELORS'
    # 2022 additions
    df.loc[df[degreeVar].apply(lambda x: str(x)=='graduação'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('bacharelado')>0),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('bacharel')>0),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('graduação em')>0),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('b pharm')>0),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='bsed'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='ballb'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='b arch'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='bac'),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('b s in')>0),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('beng in')>0),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('bsn in')>0),saveVar] = 'BACHELORS'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('bse in')>0),saveVar] = 'BACHELORS'

    # Associates
    df.loc[df[degreeVar].apply(lambda x: str(x).count('associate')>0),saveVar] = 'ASSOCIATES'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('aa in')>0),saveVar] = 'ASSOCIATES'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='assoc'),saveVar] = 'ASSOCIATES'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='aa'),saveVar] = 'ASSOCIATES'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='as'),saveVar] = 'ASSOCIATES'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='a a'),saveVar] = 'ASSOCIATES'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='a s'),saveVar] = 'ASSOCIATES'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='aas'),saveVar] = 'ASSOCIATES'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='ad'),saveVar] = 'ASSOCIATES'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='adn'),saveVar] = 'ASSOCIATES'
    # 2022 additions
    df.loc[df[degreeVar].apply(lambda x: str(x).count('as in')>0),saveVar] = 'ASSOCIATES'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('aas in')>0),saveVar] = 'ASSOCIATES'

    # Masters
    df.loc[df[degreeVar].apply(lambda x: str(x).count('master')>0),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('ma ')>0),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('ms ')>0),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('msc in')>0),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('ma in')>0),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('ms in')>0),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='ma'),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='ms'),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='m a'),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='m s'),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='mpa'),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='msa'),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='me'),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='mfa'),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='mph'),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='msw'),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='meng'),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='mca'),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='msc'),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='m tech'),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='msn'),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='m sc'),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='mcom'),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='mms'),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='mse'),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='msee'),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='mm'),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='msed'),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='m ed'),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='llm'),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='mphil'),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='mdiv'),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='mlis'),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='mls'),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='masc'),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='mps'),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='ms,'),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='ma,'),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='m com'),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='m eng'),saveVar] = 'MASTERS'
    # 2022 additions
    df.loc[df[degreeVar].apply(lambda x: str(x)=='mestrado'),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='m phil'),saveVar] = 'MASTERS'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('mtech')>0),saveVar] = 'MASTERS'
    
    # Diploma
    df.loc[df[degreeVar].apply(lambda x: str(x).count('diploma')>0),saveVar] = 'DIPLOMA'

    # Post-Grad Diploma
    df.loc[df[degreeVar].apply(lambda x: str(x).count('post graduate diploma')>0),saveVar] = 'POSTGRAD'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('postgraduate diploma')>0),saveVar] = 'POSTGRAD'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('certificate of secondary education')>0),saveVar] = 'POSTGRAD'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('higher secondary certificate')>0),saveVar] = 'POSTGRAD'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('post graduate')>0),saveVar] = 'POSTGRAD'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('p g diploma')>0),saveVar] = 'POSTGRAD'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('professional diploma')>0),saveVar] = 'POSTGRAD'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('postgraduate')>0),saveVar] = 'POSTGRAD'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('pgdm')>0),saveVar] = 'POSTGRAD'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('graduate diploma')>0),saveVar] = 'POSTGRAD'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('post graduation diploma')>0),saveVar] = 'POSTGRAD'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('graduate certificate')>0),saveVar] = 'POSTGRAD'
    df.loc[df[degreeVar].apply(lambda x: bool(re.search("pg[a-z ]*diploma",str(x)))==True),saveVar] = 'POSTGRAD'
    df.loc[df[degreeVar].apply(lambda x: bool(re.search("post[a-z ]*diploma",str(x)))==True),saveVar] = 'POSTGRAD'
    # 2022 additions
    df.loc[df[degreeVar].apply(lambda x: str(x)=='pósgraduação'),saveVar] = 'POSTGRAD'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='pós graduação'),saveVar] = 'POSTGRAD'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='posgrado'),saveVar] = 'POSTGRAD'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='postgrado'),saveVar] = 'POSTGRAD'

    # MBA
    df.loc[df[degreeVar].apply(lambda x: str(x).count('mba')>0),saveVar] = 'MBA'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('m b a')>0),saveVar] = 'MBA'
    df.loc[df[degreeVar].apply(lambda x: bool(re.search("master[a-z ]*business administration",str(x)))==True),saveVar] = 'MBA'

    # PHD
    df.loc[df[degreeVar].apply(lambda x: str(x).count('phd')>0),saveVar] = 'PHD'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('ph d')>0),saveVar] = 'PHD'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('doctorate')>0),saveVar] = 'PHD'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('doctoral')>0),saveVar] = 'PHD'
    df.loc[df[degreeVar].apply(lambda x: bool(re.search("doctor[a-z ]*philosophy",str(x)))==True),saveVar] = 'PHD'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('dphil')>0),saveVar] = 'PHD'

    # JD
    df.loc[df[degreeVar].apply(lambda x: str(x).count('jd')>0),saveVar] = 'JD'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('juris doctor')>0),saveVar] = 'JD'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('j d')>0),saveVar] = 'JD'
    df.loc[df[degreeVar].apply(lambda x: bool(re.search("doctor[a-z ]*jurisprudence",str(x)))==True),saveVar] = 'JD'

    # High School
    df.loc[df[degreeVar].apply(lambda x: str(x).count('high school')>0),saveVar] = 'HIGHSCHOOL'
    df.loc[df[degreeVar].apply(lambda x: str(x).count('highschool')>0),saveVar] = 'HIGHSCHOOL'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='hs'),saveVar] = 'HIGHSCHOOL'
    df.loc[df[degreeVar].apply(lambda x: str(x)=='ged'),saveVar] = 'HIGHSCHOOL'
    
    # Unnmatched but not missing
    df.loc[(df[degreeVar]!='missing') & (df[saveVar].isnull()),saveVar] = "UNMATCHED"

    return df

resumes = assignDegrees(resumes,'degreeName','degree')

missingDegree1 = pd.DataFrame(resumes[resumes.degree=='UNMATCHED'].groupby('degreeName').size()).reset_index()
missingDegree1 = missingDegree1[missingDegree1[0]>=100]
missingDegree1.sort_values(0,inplace=True)
missingDegree1.to_csv(savePath + "Unassigned_degrees_1.csv")

##############################################################################
# Catch degrees and majors that were misaligned into wrong columns
##############################################################################

print("Add mixed up degrees and majors.")

resumes = assignMajors(resumes,'degreeName','major_from_degree')

resumes = assignDegrees(resumes,'majorName','degree_from_major')

# Fill in majors
fillInMajorFromDegree = (resumes.grpMajor=='missing') & (resumes.degree=='UNMATCHED') & (resumes.major_from_degree!='Other')

resumes.loc[fillInMajorFromDegree,'grpMajor'] = resumes[fillInMajorFromDegree]['major_from_degree']

del resumes['major_from_degree']

# Fill in degrees
fillInDegreeFromMajor = ((resumes.degree=='UNMATCHED') | (resumes.degree=='missing')) & (resumes.grpMajor=='Other') & (resumes.degree_from_major!='UNMATCHED') & (resumes.degree_from_major!='missing')

resumes.loc[fillInDegreeFromMajor,'degree'] = resumes[fillInDegreeFromMajor]['degree_from_major']

del resumes['degree_from_major']

##############################################################################
# Organize schools into 2 clean columns
##############################################################################

resumes.sort_values(['FK_resumeId','startSchool'],inplace=True)

resumes['school_2'] = resumes.groupby('FK_resumeId').school.shift(-1)
resumes['grpMajor_2'] = resumes.groupby('FK_resumeId').grpMajor.shift(-1)
resumes['degree_2'] = resumes.groupby('FK_resumeId').degree.shift(-1)
resumes['gpa_2'] = resumes.groupby('FK_resumeId').gpa.shift(-1)
resumes['startSchool_2'] = resumes.groupby('FK_resumeId').startSchool.shift(-1)
resumes['endSchool_2'] = resumes.groupby('FK_resumeId').endSchool.shift(-1)
resumes['Nation_2'] = resumes.groupby('FK_resumeId').Nation.shift(-1)

resumes['school_3'] = resumes.groupby('FK_resumeId').school.shift(-2)
resumes['grpMajor_3'] = resumes.groupby('FK_resumeId').grpMajor.shift(-2)
resumes['degree_3'] = resumes.groupby('FK_resumeId').degree.shift(-2)
resumes['gpa_3'] = resumes.groupby('FK_resumeId').gpa.shift(-2)
resumes['startSchool_3'] = resumes.groupby('FK_resumeId').startSchool.shift(-2)
resumes['endSchool_3'] = resumes.groupby('FK_resumeId').endSchool.shift(-2)
resumes['Nation_3'] = resumes.groupby('FK_resumeId').Nation.shift(-2)

del resumes['schoolName']
del resumes['majorName']
del resumes['degreeName']

resumes = resumes.groupby('FK_resumeId').head(1)

resumes.sort_values(['FK_userId','FK_resumeId'],inplace=True)

resumes = resumes.groupby('FK_userId').tail(1)

##############################################################################
# Generate swap indicator if second school is BACHELORS and the first is not (or higher degree and first is sub-BACHELORS) 
##############################################################################

degreePairs = pd.DataFrame(resumes.groupby(['degree','degree_2']).size()).reset_index()

resumes['swapSchools'] = 0

resumes.loc[(resumes.degree=='HIGHSCHOOL') & (resumes.degree_2=='DIPLOMA'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='HIGHSCHOOL') & (resumes.degree_2=='ASSOCIATES'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='HIGHSCHOOL') & (resumes.degree_2=='BACHELORS'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='HIGHSCHOOL') & (resumes.degree_2=='MASTERS'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='HIGHSCHOOL') & (resumes.degree_2=='JD'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='HIGHSCHOOL') & (resumes.degree_2=='MBA'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='HIGHSCHOOL') & (resumes.degree_2=='PHD'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='HIGHSCHOOL') & (resumes.degree_2=='POSTGRAD'),'swapSchools'] = 1

resumes.loc[(resumes.degree=='DIPLOMA') & (resumes.degree_2=='ASSOCIATES'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='DIPLOMA') & (resumes.degree_2=='BACHELORS'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='DIPLOMA') & (resumes.degree_2=='MASTERS'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='DIPLOMA') & (resumes.degree_2=='JD'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='DIPLOMA') & (resumes.degree_2=='MBA'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='DIPLOMA') & (resumes.degree_2=='PHD'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='DIPLOMA') & (resumes.degree_2=='POSTGRAD'),'swapSchools'] = 1

resumes.loc[(resumes.degree=='ASSOCIATES') & (resumes.degree_2=='BACHELORS'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='ASSOCIATES') & (resumes.degree_2=='MASTERS'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='ASSOCIATES') & (resumes.degree_2=='JD'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='ASSOCIATES') & (resumes.degree_2=='MBA'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='ASSOCIATES') & (resumes.degree_2=='PHD'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='ASSOCIATES') & (resumes.degree_2=='POSTGRAD'),'swapSchools'] = 1

resumes.loc[(resumes.degree=='POSTGRAD') & (resumes.degree_2=='BACHELORS'),'swapSchools'] = 1

resumes.loc[(resumes.degree=='MASTERS') & (resumes.degree_2=='BACHELORS'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='MBA') & (resumes.degree_2=='BACHELORS'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='JD') & (resumes.degree_2=='BACHELORS'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='PHD') & (resumes.degree_2=='BACHELORS'),'swapSchools'] = 1

resumes.loc[(resumes.degree=='UNMATCHED') & ~((resumes.degree_2.isnull()) | (resumes.degree_2=='UNMATCHED') | (resumes.degree_2=='missing')),'swapSchools'] = 1
resumes.loc[(resumes.degree=='missing') & ~((resumes.degree_2.isnull()) | (resumes.degree_2=='UNMATCHED') | (resumes.degree_2=='missing')),'swapSchools'] = 1

resumes.swapSchools.sum()

validSwap = resumes.swapSchools==1

resumes.loc[validSwap,'tempschool'] = resumes[validSwap]['school']
resumes.loc[validSwap,'school'] = resumes[validSwap]['school_2']
resumes.loc[validSwap,'school_2'] = resumes[validSwap]['tempschool']
del resumes['tempschool']

resumes.loc[validSwap,'tempgrpMajor'] = resumes[validSwap]['grpMajor']
resumes.loc[validSwap,'grpMajor'] = resumes[validSwap]['grpMajor_2']
resumes.loc[validSwap,'grpMajor_2'] = resumes[validSwap]['tempgrpMajor']
del resumes['tempgrpMajor']

resumes.loc[validSwap,'tempdegree'] = resumes[validSwap]['degree']
resumes.loc[validSwap,'degree'] = resumes[validSwap]['degree_2']
resumes.loc[validSwap,'degree_2'] = resumes[validSwap]['tempdegree']
del resumes['tempdegree']

resumes.loc[validSwap,'tempgpa'] = resumes[validSwap]['gpa']
resumes.loc[validSwap,'gpa'] = resumes[validSwap]['gpa_2']
resumes.loc[validSwap,'gpa_2'] = resumes[validSwap]['tempgpa']
del resumes['tempgpa']

resumes.loc[validSwap,'tempstartSchool'] = resumes[validSwap]['startSchool']
resumes.loc[validSwap,'startSchool'] = resumes[validSwap]['startSchool_2']
resumes.loc[validSwap,'startSchool_2'] = resumes[validSwap]['tempstartSchool']
del resumes['tempstartSchool']

resumes.loc[validSwap,'tempendSchool'] = resumes[validSwap]['endSchool']
resumes.loc[validSwap,'endSchool'] = resumes[validSwap]['endSchool_2']
resumes.loc[validSwap,'endSchool_2'] = resumes[validSwap]['tempendSchool']
del resumes['tempendSchool']

resumes.loc[validSwap,'tempNation'] = resumes[validSwap]['Nation']
resumes.loc[validSwap,'Nation'] = resumes[validSwap]['Nation_2']
resumes.loc[validSwap,'Nation_2'] = resumes[validSwap]['tempNation']
del resumes['tempNation']

del resumes['swapSchools']
del validSwap

degreePairsNew = pd.DataFrame(resumes.groupby(['degree','degree_2']).size()).reset_index()

##############################################################################
# Generate swap indicator if third school is BACHELORS and the first is not (or higher degree and first is sub-BACHELORS) 
##############################################################################

degreePairs3 = pd.DataFrame(resumes.groupby(['degree','degree_3']).size()).reset_index()

resumes['swapSchools'] = 0

resumes.loc[(resumes.degree=='HIGHSCHOOL') & (resumes.degree_3=='DIPLOMA'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='HIGHSCHOOL') & (resumes.degree_3=='ASSOCIATES'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='HIGHSCHOOL') & (resumes.degree_3=='BACHELORS'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='HIGHSCHOOL') & (resumes.degree_3=='MASTERS'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='HIGHSCHOOL') & (resumes.degree_3=='JD'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='HIGHSCHOOL') & (resumes.degree_3=='MBA'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='HIGHSCHOOL') & (resumes.degree_3=='PHD'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='HIGHSCHOOL') & (resumes.degree_3=='POSTGRAD'),'swapSchools'] = 1

resumes.loc[(resumes.degree=='DIPLOMA') & (resumes.degree_3=='ASSOCIATES'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='DIPLOMA') & (resumes.degree_3=='BACHELORS'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='DIPLOMA') & (resumes.degree_3=='MASTERS'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='DIPLOMA') & (resumes.degree_3=='JD'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='DIPLOMA') & (resumes.degree_3=='MBA'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='DIPLOMA') & (resumes.degree_3=='PHD'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='DIPLOMA') & (resumes.degree_3=='POSTGRAD'),'swapSchools'] = 1

resumes.loc[(resumes.degree=='ASSOCIATES') & (resumes.degree_3=='BACHELORS'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='ASSOCIATES') & (resumes.degree_3=='MASTERS'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='ASSOCIATES') & (resumes.degree_3=='JD'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='ASSOCIATES') & (resumes.degree_3=='MBA'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='ASSOCIATES') & (resumes.degree_3=='PHD'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='ASSOCIATES') & (resumes.degree_3=='POSTGRAD'),'swapSchools'] = 1


resumes.loc[(resumes.degree=='POSTGRAD') & (resumes.degree_3=='BACHELORS'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='MASTERS') & (resumes.degree_3=='BACHELORS'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='MBA') & (resumes.degree_3=='BACHELORS'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='JD') & (resumes.degree_3=='BACHELORS'),'swapSchools'] = 1
resumes.loc[(resumes.degree=='PHD') & (resumes.degree_3=='BACHELORS'),'swapSchools'] = 1

resumes.loc[(resumes.degree=='UNMATCHED') & ~((resumes.degree_3.isnull()) | (resumes.degree_3=='UNMATCHED') | (resumes.degree_3=='missing')),'swapSchools'] = 1
resumes.loc[(resumes.degree=='missing') & ~((resumes.degree_3.isnull()) | (resumes.degree_3=='UNMATCHED') | (resumes.degree_3=='missing')),'swapSchools'] = 1

resumes.swapSchools.sum()

validSwap = resumes.swapSchools==1

resumes.loc[validSwap,'tempschool'] = resumes[validSwap]['school']
resumes.loc[validSwap,'school'] = resumes[validSwap]['school_3']
resumes.loc[validSwap,'school_3'] = resumes[validSwap]['tempschool']
del resumes['tempschool']

resumes.loc[validSwap,'tempgrpMajor'] = resumes[validSwap]['grpMajor']
resumes.loc[validSwap,'grpMajor'] = resumes[validSwap]['grpMajor_3']
resumes.loc[validSwap,'grpMajor_3'] = resumes[validSwap]['tempgrpMajor']
del resumes['tempgrpMajor']

resumes.loc[validSwap,'tempdegree'] = resumes[validSwap]['degree']
resumes.loc[validSwap,'degree'] = resumes[validSwap]['degree_3']
resumes.loc[validSwap,'degree_3'] = resumes[validSwap]['tempdegree']
del resumes['tempdegree']

resumes.loc[validSwap,'tempgpa'] = resumes[validSwap]['gpa']
resumes.loc[validSwap,'gpa'] = resumes[validSwap]['gpa_3']
resumes.loc[validSwap,'gpa_3'] = resumes[validSwap]['tempgpa']
del resumes['tempgpa']

resumes.loc[validSwap,'tempstartSchool'] = resumes[validSwap]['startSchool']
resumes.loc[validSwap,'startSchool'] = resumes[validSwap]['startSchool_3']
resumes.loc[validSwap,'startSchool_3'] = resumes[validSwap]['tempstartSchool']
del resumes['tempstartSchool']

resumes.loc[validSwap,'tempendSchool'] = resumes[validSwap]['endSchool']
resumes.loc[validSwap,'endSchool'] = resumes[validSwap]['endSchool_3']
resumes.loc[validSwap,'endSchool_3'] = resumes[validSwap]['tempendSchool']
del resumes['tempendSchool']

resumes.loc[validSwap,'tempNation'] = resumes[validSwap]['Nation']
resumes.loc[validSwap,'Nation'] = resumes[validSwap]['Nation_3']
resumes.loc[validSwap,'Nation_3'] = resumes[validSwap]['tempNation']
del resumes['tempNation']

del resumes['swapSchools']
del validSwap

degreePairsNew3 = pd.DataFrame(resumes.groupby(['degree','degree_3']).size()).reset_index()

##############################################################################
# Generate swap indicator if third school is a higher degree than the second or second missing
##############################################################################

degreePairs23 = pd.DataFrame(resumes.groupby(['degree_2','degree_3']).size()).reset_index()

resumes['swapSchools'] = 0

resumes.loc[(resumes.degree_2=='HIGHSCHOOL') & (resumes.degree_3=='DIPLOMA'),'swapSchools'] = 1
resumes.loc[(resumes.degree_2=='HIGHSCHOOL') & (resumes.degree_3=='ASSOCIATES'),'swapSchools'] = 1
resumes.loc[(resumes.degree_2=='HIGHSCHOOL') & (resumes.degree_3=='BACHELORS'),'swapSchools'] = 1
resumes.loc[(resumes.degree_2=='HIGHSCHOOL') & (resumes.degree_3=='MASTERS'),'swapSchools'] = 1
resumes.loc[(resumes.degree_2=='HIGHSCHOOL') & (resumes.degree_3=='JD'),'swapSchools'] = 1
resumes.loc[(resumes.degree_2=='HIGHSCHOOL') & (resumes.degree_3=='MBA'),'swapSchools'] = 1
resumes.loc[(resumes.degree_2=='HIGHSCHOOL') & (resumes.degree_3=='PHD'),'swapSchools'] = 1
resumes.loc[(resumes.degree_2=='HIGHSCHOOL') & (resumes.degree_3=='POSTGRAD'),'swapSchools'] = 1

resumes.loc[(resumes.degree_2=='DIPLOMA') & (resumes.degree_3=='ASSOCIATES'),'swapSchools'] = 1
resumes.loc[(resumes.degree_2=='DIPLOMA') & (resumes.degree_3=='BACHELORS'),'swapSchools'] = 1
resumes.loc[(resumes.degree_2=='DIPLOMA') & (resumes.degree_3=='MASTERS'),'swapSchools'] = 1
resumes.loc[(resumes.degree_2=='DIPLOMA') & (resumes.degree_3=='JD'),'swapSchools'] = 1
resumes.loc[(resumes.degree_2=='DIPLOMA') & (resumes.degree_3=='MBA'),'swapSchools'] = 1
resumes.loc[(resumes.degree_2=='DIPLOMA') & (resumes.degree_3=='PHD'),'swapSchools'] = 1
resumes.loc[(resumes.degree_2=='DIPLOMA') & (resumes.degree_3=='POSTGRAD'),'swapSchools'] = 1

resumes.loc[(resumes.degree_2=='ASSOCIATES') & (resumes.degree_3=='BACHELORS'),'swapSchools'] = 1
resumes.loc[(resumes.degree_2=='ASSOCIATES') & (resumes.degree_3=='MASTERS'),'swapSchools'] = 1
resumes.loc[(resumes.degree_2=='ASSOCIATES') & (resumes.degree_3=='JD'),'swapSchools'] = 1
resumes.loc[(resumes.degree_2=='ASSOCIATES') & (resumes.degree_3=='MBA'),'swapSchools'] = 1
resumes.loc[(resumes.degree_2=='ASSOCIATES') & (resumes.degree_3=='PHD'),'swapSchools'] = 1
resumes.loc[(resumes.degree_2=='ASSOCIATES') & (resumes.degree_3=='POSTGRAD'),'swapSchools'] = 1

resumes.loc[(resumes.degree_2=='BACHELORS') & (resumes.degree_3=='MASTERS'),'swapSchools'] = 1
resumes.loc[(resumes.degree_2=='BACHELORS') & (resumes.degree_3=='JD'),'swapSchools'] = 1
resumes.loc[(resumes.degree_2=='BACHELORS') & (resumes.degree_3=='MBA'),'swapSchools'] = 1
resumes.loc[(resumes.degree_2=='BACHELORS') & (resumes.degree_3=='PHD'),'swapSchools'] = 1
resumes.loc[(resumes.degree_2=='BACHELORS') & (resumes.degree_3=='POSTGRAD'),'swapSchools'] = 1

resumes.loc[(resumes.degree_2=='POSTGRAD') & (resumes.degree_3=='MASTERS'),'swapSchools'] = 1
resumes.loc[(resumes.degree_2=='POSTGRAD') & (resumes.degree_3=='JD'),'swapSchools'] = 1
resumes.loc[(resumes.degree_2=='POSTGRAD') & (resumes.degree_3=='MBA'),'swapSchools'] = 1
resumes.loc[(resumes.degree_2=='POSTGRAD') & (resumes.degree_3=='PHD'),'swapSchools'] = 1

resumes.loc[(resumes.degree_2=='MASTERS') & (resumes.degree_3=='JD'),'swapSchools'] = 1
resumes.loc[(resumes.degree_2=='MASTERS') & (resumes.degree_3=='MBA'),'swapSchools'] = 1
resumes.loc[(resumes.degree_2=='MASTERS') & (resumes.degree_3=='PHD'),'swapSchools'] = 1

resumes.loc[(resumes.degree_2=='MBA') & (resumes.degree_3=='JD'),'swapSchools'] = 1
resumes.loc[(resumes.degree_2=='MBA') & (resumes.degree_3=='PHD'),'swapSchools'] = 1

resumes.loc[(resumes.degree_2=='JD') & (resumes.degree_3=='PHD'),'swapSchools'] = 1

resumes.loc[(resumes.degree_2=='UNMATCHED') & ~((resumes.degree_3.isnull()) | (resumes.degree_3=='UNMATCHED') | (resumes.degree_3=='missing')),'swapSchools'] = 1
resumes.loc[(resumes.degree_2=='missing') & ~((resumes.degree_3.isnull()) | (resumes.degree_3=='UNMATCHED') | (resumes.degree_3=='missing')),'swapSchools'] = 1

resumes.swapSchools.sum()

validSwap = resumes.swapSchools==1

resumes.loc[validSwap,'tempschool'] = resumes[validSwap]['school_2']
resumes.loc[validSwap,'school_2'] = resumes[validSwap]['school_3']
resumes.loc[validSwap,'school_3'] = resumes[validSwap]['tempschool']
del resumes['tempschool']

resumes.loc[validSwap,'tempgrpMajor'] = resumes[validSwap]['grpMajor_2']
resumes.loc[validSwap,'grpMajor_2'] = resumes[validSwap]['grpMajor_3']
resumes.loc[validSwap,'grpMajor_3'] = resumes[validSwap]['tempgrpMajor']
del resumes['tempgrpMajor']

resumes.loc[validSwap,'tempdegree'] = resumes[validSwap]['degree_2']
resumes.loc[validSwap,'degree_2'] = resumes[validSwap]['degree_3']
resumes.loc[validSwap,'degree_3'] = resumes[validSwap]['tempdegree']
del resumes['tempdegree']

resumes.loc[validSwap,'tempgpa'] = resumes[validSwap]['gpa_2']
resumes.loc[validSwap,'gpa_2'] = resumes[validSwap]['gpa_3']
resumes.loc[validSwap,'gpa_3'] = resumes[validSwap]['tempgpa']
del resumes['tempgpa']

resumes.loc[validSwap,'tempstartSchool'] = resumes[validSwap]['startSchool_2']
resumes.loc[validSwap,'startSchool_2'] = resumes[validSwap]['startSchool_3']
resumes.loc[validSwap,'startSchool_3'] = resumes[validSwap]['tempstartSchool']
del resumes['tempstartSchool']

resumes.loc[validSwap,'tempendSchool'] = resumes[validSwap]['endSchool_2']
resumes.loc[validSwap,'endSchool_2'] = resumes[validSwap]['endSchool_3']
resumes.loc[validSwap,'endSchool_3'] = resumes[validSwap]['tempendSchool']
del resumes['tempendSchool']

resumes.loc[validSwap,'tempNation'] = resumes[validSwap]['Nation_2']
resumes.loc[validSwap,'Nation_2'] = resumes[validSwap]['Nation_3']
resumes.loc[validSwap,'Nation_3'] = resumes[validSwap]['tempNation']
del resumes['tempNation']

del resumes['swapSchools']
del validSwap

degreePairsNew23 = pd.DataFrame(resumes.groupby(['degree_2','degree_3']).size()).reset_index()

##############################################################################
# Deleter third school variables
##############################################################################

del resumes['school_3'] 
del resumes['grpMajor_3'] 
del resumes['degree_3'] 
del resumes['gpa_3'] 
del resumes['startSchool_3'] 
del resumes['endSchool_3']
del resumes['Nation_3']

##############################################################################
# Check that no schools have multiple nations
##############################################################################

schoolNations = resumes.groupby(['school','Nation']).size().reset_index()

schoolNationCount = schoolNations.groupby('school').size().reset_index()

resumes.loc[resumes.school=='Eindhoven University of Technology','Nation'] = 'nl'
resumes.loc[resumes.school_2=='Eindhoven University of Technology','Nation_2'] = 'nl'

resumes.loc[resumes.school=='Mapúa University','Nation'] = 'ph'
resumes.loc[resumes.school_2=='Mapúa University','Nation_2'] = 'ph'

resumes.loc[(resumes.school=='National University') & (resumes.Nation=='cr'),'school'] = 'National University of Costa Rica'
resumes.loc[(resumes.school_2=='National University') & (resumes.Nation_2=='cr'),'school_2'] = 'National University of Costa Rica'

resumes.loc[(resumes.school=="Queen's University") & (resumes.Nation=='bd'),'school'] = 'Queens University'
resumes.loc[(resumes.school_2=="Queen's University") & (resumes.Nation_2=='bd'),'school_2'] = 'Queens University'

resumes.loc[resumes.school=='Universidad Latina de Costa Rica','Nation'] = 'cr'
resumes.loc[resumes.school_2=='Universidad Latina de Costa Rica','Nation_2'] = 'cr'

resumes.loc[(resumes.school=="Universidad Simón Bolívar") & (resumes.Nation=='mx'),'school'] = 'Simón Bolívar University'
resumes.loc[(resumes.school_2=="Universidad Simón Bolívar") & (resumes.Nation_2=='mx'),'school_2'] = 'Simón Bolívar University'

resumes.loc[resumes.school=='University of Puerto Rico-Rio Piedras','Nation'] = 'pr'
resumes.loc[resumes.school_2=='University of Puerto Rico-Rio Piedras','Nation_2'] = 'pr'

resumes.loc[resumes.school=='University of Puerto Rico-Mayaguez','Nation'] = 'pr'
resumes.loc[resumes.school_2=='University of Puerto Rico-Mayaguez','Nation_2'] = 'pr'

resumes.loc[resumes.school=='Universidad del Sagrado Corazon','Nation'] = 'pr'
resumes.loc[resumes.school_2=='Universidad del Sagrado Corazon','Nation_2'] = 'pr'

resumes.loc[resumes.school=='Inter American University of Puerto Rico-Guayama','Nation'] = 'pr'
resumes.loc[resumes.school_2=='Inter American University of Puerto Rico-Guayama','Nation_2'] = 'pr'

resumes.loc[(resumes.school=="Wittenberg University") & (resumes.Nation=='nl'),'school'] = 'Wittenborg University of Applied Sciences'
resumes.loc[(resumes.school_2=="Wittenberg University") & (resumes.Nation_2=='nl'),'school_2'] = 'Wittenborg University of Applied Sciences'

schoolNations = resumes.groupby(['school','Nation']).size().reset_index()

schoolNationCount = schoolNations.groupby('school').size().reset_index()

resumes = resumes[resumes.school!='Universidad de Los Andes']
resumes = resumes[resumes.school_2!='Universidad de Los Andes']

##############################################################################
# Clean and append high school
##############################################################################

hasSecondSchool = resumes.school_2.notnull().sum()

resumes = resumes[['FK_resumeId','FK_userId','school','grpMajor','degree','gpa','startSchool','endSchool','Nation',
                   'school_2','grpMajor_2','degree_2','gpa_2','startSchool_2','endSchool_2','Nation_2']]

##############################################################################
# Drop if highest degree listed on resume is high school
##############################################################################

resumes = resumes[resumes.degree!='HIGHSCHOOL'] 

##############################################################################
# Final combine of universities that are the same but go by different names 
##############################################################################

resumes.loc[resumes.school=='University of Padua','school'] = 'University of Padova'
resumes.loc[resumes.school_2=='University of Padua','school_2'] = 'University of Padova'

resumes.loc[resumes.school=='Università degli Studi di Genova','school'] = 'University of Genoa'
resumes.loc[resumes.school_2=='Università degli Studi di Genova','school_2'] = 'University of Genoa'

resumes.loc[resumes.school=='University of Colorado Denver | Anschutz Medical Campus','school'] = 'University of Colorado Denver/Anschutz Medical Campus'
resumes.loc[resumes.school_2=='University of Colorado Denver | Anschutz Medical Campus','school_2'] = 'University of Colorado Denver/Anschutz Medical Campus'

resumes.loc[resumes.school=='University of California, Davis','school'] = 'University of California-Davis'
resumes.loc[resumes.school_2=='University of California, Davis','school_2'] = 'University of California-Davis'

resumes.loc[resumes.school=='University of California, Santa Barbara','school'] = 'University of California-Santa Barbara'
resumes.loc[resumes.school_2=='University of California, Santa Barbara','school_2'] = 'University of California-Santa Barbara'

resumes.loc[resumes.school=='University of California, Santa Cruz','school'] = 'University of California-Santa Cruz'
resumes.loc[resumes.school_2=='University of California, Santa Cruz','school_2'] = 'University of California-Santa Cruz'

resumes.loc[resumes.school=='University of California San Diego','school'] = 'University of California-San Diego'
resumes.loc[resumes.school_2=='University of California San Diego','school_2'] = 'University of California-San Diego'

resumes.loc[resumes.school=='University of Alaska','school'] = 'University of Alaska Fairbanks'
resumes.loc[resumes.school_2=='University of Alaska','school_2'] = 'University of Alaska Fairbanks'

resumes.loc[resumes.school=='Çanakkale Onsekiz Mart Üniversitesi','school'] = 'Çanakkale Onsekiz Mart University'
resumes.loc[resumes.school_2=='Çanakkale Onsekiz Mart Üniversitesi','school_2'] = 'Çanakkale Onsekiz Mart University'

resumes.loc[resumes.school=='Y?ld?z Technical University','school'] = 'Yildiz Technical University'
resumes.loc[resumes.school_2=='Y?ld?z Technical University','school_2'] = 'Yildiz Technical University'

resumes.loc[resumes.school=='Vilniaus Gedimino Technikos Universitetas','school'] = 'Vilnius Gediminas Technical University'
resumes.loc[resumes.school_2=='Vilniaus Gedimino Technikos Universitetas','school_2'] = 'Vilnius Gediminas Technical University'

resumes.loc[resumes.school=='Virginia Tech Carilion School of Medicine','school'] = 'Virginia Polytechnic Institute and State University'
resumes.loc[resumes.school_2=='Virginia Tech Carilion School of Medicine','school_2'] = 'Virginia Polytechnic Institute and State University'

resumes.loc[resumes.school=='University of Rzeszów','school'] = 'Uniwersytet Rzeszowski'
resumes.loc[resumes.school_2=='University of Rzeszów','school_2'] = 'Uniwersytet Rzeszowski'

resumes.loc[resumes.school=='University of Nebraska–Lincoln','school'] = 'University of Nebraska-Lincoln'
resumes.loc[resumes.school_2=='University of Nebraska–Lincoln','school_2'] = 'University of Nebraska-Lincoln'

resumes.loc[resumes.school=='Tulane University','school'] = 'Tulane University of Louisiana'
resumes.loc[resumes.school_2=='Tulane University','school_2'] = 'Tulane University of Louisiana'

resumes.loc[resumes.school=='University of Massachusetts Amherst','school'] = 'University of Massachusetts-Amherst'
resumes.loc[resumes.school_2=='University of Massachusetts Amherst','school_2'] = 'University of Massachusetts-Amherst'

resumes.loc[resumes.school=='University of Massachusetts Lowell','school'] = 'University of Massachusetts-Lowell'
resumes.loc[resumes.school_2=='University of Massachusetts Lowell','school_2'] = 'University of Massachusetts-Lowell'

resumes.loc[resumes.school=='University of Puerto Rico, Río Piedras Campus','school'] = 'University of Puerto Rico-Rio Piedras'
resumes.loc[resumes.school_2=='University of Puerto Rico, Río Piedras Campus','school_2'] = 'University of Puerto Rico-Rio Piedras'

resumes.loc[resumes.school=='Technion - Israel Institute of Technology','school'] = 'Technion Israel Institute of Technology'
resumes.loc[resumes.school_2=='Technion - Israel Institute of Technology','school_2'] = 'Technion Israel Institute of Technology'

resumes.loc[resumes.school=='TU Dresden','school'] = 'Technische Universität Dresden'
resumes.loc[resumes.school_2=='TU Dresden','school_2'] = 'Technische Universität Dresden'

resumes.loc[resumes.school=='Süleyman Demirel Üniversitesi','school'] = 'Süleyman Demirel University'
resumes.loc[resumes.school_2=='Süleyman Demirel Üniversitesi','school_2'] = 'Süleyman Demirel University'

resumes.loc[resumes.school=='Sakarya Üniversitesi','school'] = 'Sakarya University'
resumes.loc[resumes.school_2=='Sakarya Üniversitesi','school_2'] = 'Sakarya University'

resumes.loc[resumes.school=='Radboud Universiteit','school'] = 'Radboud University'
resumes.loc[resumes.school_2=='Radboud Universiteit','school_2'] = 'Radboud University'

resumes.loc[resumes.school=='Atatürk Üniversitesi','school'] = 'Atatürk University'
resumes.loc[resumes.school_2=='Atatürk Üniversitesi','school_2'] = 'Atatürk University'

resumes.loc[resumes.school=='Ankara Üniversitesi','school'] = 'Ankara University'
resumes.loc[resumes.school_2=='Ankara Üniversitesi','school_2'] = 'Ankara University'

resumes.loc[resumes.school=='Universidad Autónoma de Baja California','school'] = 'Autonomous University of Baja California'
resumes.loc[resumes.school_2=='Universidad Autónoma de Baja California','school_2'] = 'Autonomous University of Baja California'

resumes.loc[resumes.school=='Arizona State University','school'] = 'Arizona State University-Tempe'
resumes.loc[resumes.school_2=='Arizona State University','school_2'] = 'Arizona State University-Tempe'

resumes.loc[resumes.school=='College of Staten Island','school'] = 'College of Staten Island CUNY'
resumes.loc[resumes.school_2=='College of Staten Island','school_2'] = 'College of Staten Island CUNY'

resumes.loc[resumes.school=='College of Staten Island','school'] = 'College of Staten Island CUNY'
resumes.loc[resumes.school_2=='College of Staten Island','school_2'] = 'College of Staten Island CUNY'

resumes.loc[resumes.school=='California State Polytechnic University, Pomona','school'] = 'California State Polytechnic University-Pomona'
resumes.loc[resumes.school_2=='California State Polytechnic University, Pomona','school_2'] = 'California State Polytechnic University-Pomona'

resumes.loc[resumes.school=='Charles University','school'] = 'Charles University in Prague'
resumes.loc[resumes.school_2=='Charles University','school_2'] = 'Charles University in Prague'

resumes.loc[resumes.school=='Eötvös Loránd Tudományegyetem','school'] = 'Eötvös Loránd University'
resumes.loc[resumes.school_2=='Eötvös Loránd Tudományegyetem','school_2'] = 'Eötvös Loránd University'

resumes.loc[resumes.school=='Eidgenössische Technische Hochschule Zürich','school'] = 'ETH Zurich'
resumes.loc[resumes.school_2=='Eidgenössische Technische Hochschule Zürich','school_2'] = 'ETH Zurich'

resumes.loc[resumes.school=='Koç Üniversitesi','school'] = 'Koç University'
resumes.loc[resumes.school_2=='Koç Üniversitesi','school_2'] = 'Koç University'

resumes.loc[resumes.school=='Kocaeli Üniversitesi','school'] = 'Kocaeli University'
resumes.loc[resumes.school_2=='Kocaeli Üniversitesi','school_2'] = 'Kocaeli University'

resumes.loc[resumes.school=='Jacobs University Bremen','school'] = 'Jacobs University'
resumes.loc[resumes.school_2=='Jacobs University Bremen','school_2'] = 'Jacobs University'

resumes.loc[resumes.school=='Gebze Teknik Üniversitesi','school'] = 'Gebze Technical University'
resumes.loc[resumes.school_2=='Gebze Teknik Üniversitesi','school_2'] = 'Gebze Technical University'

resumes.loc[resumes.school=='Gaziantep Üniversitesi','school'] = 'Gaziantep University'
resumes.loc[resumes.school_2=='Gaziantep Üniversitesi','school_2'] = 'Gaziantep University'

resumes.loc[resumes.school=='Universidade Federal de Minas Gerais','school'] = 'Federal University of Minas Gerais'
resumes.loc[resumes.school_2=='Universidade Federal de Minas Gerais','school_2'] = 'Federal University of Minas Gerais'

resumes.loc[resumes.school=='Universidade Federal do Ceará','school'] = 'Federal University of Ceará'
resumes.loc[resumes.school_2=='Universidade Federal do Ceará','school_2'] = 'Federal University of Ceará'

resumes.loc[resumes.school=='Universidade Federal do Paraná','school'] = 'Federal University of Paraná'
resumes.loc[resumes.school_2=='Universidade Federal do Paraná','school_2'] = 'Federal University of Paraná'

resumes.loc[resumes.school=='Universidade Federal de Santa Catarina','school'] = 'Federal University of Santa Catarina'
resumes.loc[resumes.school_2=='Universidade Federal de Santa Catarina','school_2'] = 'Federal University of Santa Catarina'

resumes.loc[resumes.school=='Universidade Federal da Bahia','school'] = 'Federal University of Bahia'
resumes.loc[resumes.school_2=='Universidade Federal da Bahia','school_2'] = 'Federal University of Bahia'

resumes.loc[resumes.school=='Universidade Federal de São Carlos','school'] = 'Federal University of São Carlos'
resumes.loc[resumes.school_2=='Universidade Federal de São Carlos','school_2'] = 'Federal University of São Carlos'

resumes.loc[resumes.school=='Hamburg University of Technology','school'] = 'Technische Universität Hamburg'
resumes.loc[resumes.school_2=='Hamburg University of Technology','school_2'] = 'Technische Universität Hamburg'

resumes.loc[resumes.school=='Justus-Liebig-Universität Giessen','school'] = 'Justus Liebig University Giessen'
resumes.loc[resumes.school_2=='Justus-Liebig-Universität Giessen','school_2'] = 'Justus Liebig University Giessen'

resumes.loc[resumes.school=='Johannes Kepler Universität Linz','school'] = 'Johannes Kepler University Linz'
resumes.loc[resumes.school_2=='Johannes Kepler Universität Linz','school_2'] = 'Johannes Kepler University Linz'

resumes.loc[resumes.school=='Johannes Gutenberg-Universität Mainz','school'] = 'Johannes Gutenberg University Mainz'
resumes.loc[resumes.school_2=='Johannes Gutenberg-Universität Mainz','school_2'] = 'Johannes Gutenberg University Mainz'

resumes.loc[resumes.school=='Karadeniz Teknik Üniversitesiesi','school'] = 'Karadeniz Technical University'
resumes.loc[resumes.school_2=='Karadeniz Teknik Üniversitesi','school_2'] = 'Karadeniz Technical University'

resumes.loc[resumes.school=='Kavayitri Bahinabai Chaudhari North Maharashtra University','school'] = 'Kavayitri Bahinabai Chaudhari North Maharashtra University Jalgaon'
resumes.loc[resumes.school_2=='Kavayitri Bahinabai Chaudhari North Maharashtra University','school_2'] = 'Kavayitri Bahinabai Chaudhari North Maharashtra University Jalgaon'

resumes.loc[resumes.school=='Pennsylvania State University','school'] = 'Pennsylvania State University-Main Campus'
resumes.loc[resumes.school_2=='Pennsylvania State University','school_2'] = 'Pennsylvania State University-Main Campus'

resumes.loc[resumes.school=='Pennsylvania State University','school'] = 'Pennsylvania State University-Main Campus'
resumes.loc[resumes.school_2=='Pennsylvania State University','school_2'] = 'Pennsylvania State University-Main Campus'

resumes.loc[resumes.school=='Pontifical Catholic University of Paraná','school'] = 'Pontifícia Universidade Católica do Paraná'
resumes.loc[resumes.school_2=='Pontifical Catholic University of Paraná','school_2'] = 'Pontifícia Universidade Católica do Paraná'

resumes.loc[resumes.school=='Pontifical Catholic University of Peru','school'] = 'Pontificia Universidad Católica del Perú'
resumes.loc[resumes.school_2=='Pontifical Catholic University of Peru','school_2'] = 'Pontificia Universidad Católica del Perú'

resumes.loc[resumes.school=='Universidad Nacional Autónoma de México','school'] = 'National Autonomous University of Mexico'
resumes.loc[resumes.school_2=='Universidad Nacional Autónoma de México','school_2'] = 'National Autonomous University of Mexico'

resumes.loc[resumes.school=='Pontifical Javeriana University','school'] = 'Pontificia Universidad Javeriana'
resumes.loc[resumes.school_2=='Pontifical Javeriana University','school_2'] = 'Pontificia Universidad Javeriana'

resumes.loc[resumes.school=='Southern Arkansas University Main Campus','school'] = 'Southern Arkansas University'
resumes.loc[resumes.school_2=='Southern Arkansas University Main Campus','school_2'] = 'Southern Arkansas University'

resumes.loc[resumes.school=='Southern University and A & M College','school'] = 'Southern University and A&M College'
resumes.loc[resumes.school_2=='Southern University and A & M College','school_2'] = 'Southern University and A&M College'

resumes.loc[resumes.school=='North Carolina A & T State University','school'] = 'North Carolina A&T State University'
resumes.loc[resumes.school_2=='North Carolina A & T State University','school_2'] = 'North Carolina A&T State University'

resumes.loc[resumes.school=='Szent István Egyetem','school'] = 'Szent István University'
resumes.loc[resumes.school_2=='Szent István Egyetem','school_2'] = 'Szent István University'

resumes.loc[resumes.school=='Tallinna Tehnikaülikool','school'] = 'Tallinn University of Technology'
resumes.loc[resumes.school_2=='Tallinna Tehnikaülikool','school_2'] = 'Tallinn University of Technology'

resumes.loc[resumes.school=='Technical University of Dortmund','school'] = 'Technische Universität Dortmund'
resumes.loc[resumes.school_2=='Technical University of Dortmund','school_2'] = 'Technische Universität Dortmund'

resumes.loc[resumes.school=='Technical University of Braunschweig','school'] = 'Technische Universität Braunschweig'
resumes.loc[resumes.school_2=='Technical University of Braunschweig','school_2'] = 'Technische Universität Braunschweig'

resumes.loc[resumes.school=='Indian School of Mines','school'] = 'Indian Institute of Technology Dhanbad'
resumes.loc[resumes.school_2=='Indian School of Mines','school_2'] = 'Indian Institute of Technology Dhanbad'
resumes.loc[resumes.school=='Indian Institute of Technology (Indian School of Mines), Dhanbad','school'] = 'Indian Institute of Technology Dhanbad'
resumes.loc[resumes.school_2=='Indian Institute of Technology (Indian School of Mines), Dhanbad','school_2'] = 'Indian Institute of Technology Dhanbad'

resumes.loc[resumes.school=='University of New York','school'] = 'New York University'
resumes.loc[resumes.school_2=='University of New York','school_2'] = 'New York University'

resumes.loc[resumes.school=='Università degli Studi di Napoli Federico II','school'] = 'University of Naples Federico II'
resumes.loc[resumes.school_2=='Università degli Studi di Napoli Federico II','school_2'] = 'University of Naples Federico II'

resumes.loc[resumes.school=='Università degli Studi di Milano-Bicocca','school'] = 'University of Milano-Bicocca'
resumes.loc[resumes.school_2=='Università degli Studi di Milano-Bicocca','school_2'] = 'University of Milano-Bicocca'

resumes.loc[resumes.school=='Università degli Studi di Catania','school'] = 'University of Catania'
resumes.loc[resumes.school_2=='Università degli Studi di Catania','school_2'] = 'University of Catania'

resumes.loc[resumes.school=='Università Vita-Salute San Raffaele','school'] = 'Vita-Salute San Raffaele University'
resumes.loc[resumes.school_2=='Università Vita-Salute San Raffaele','school_2'] = 'Vita-Salute San Raffaele University'

resumes.loc[resumes.school=='Metropolitan Autonomous University','school'] = 'Universidad Autónoma Metropolitana'
resumes.loc[resumes.school_2=='Metropolitan Autonomous University','school_2'] = 'Universidad Autónoma Metropolitana'

resumes.loc[resumes.school=='Politechnika Warszawska','school'] = 'Warsaw University of Technology'
resumes.loc[resumes.school_2=='Politechnika Warszawska','school_2'] = 'Warsaw University of Technology'

resumes.loc[resumes.school=='Politechnika Poznanska','school'] = 'Pozna? University of Technology'
resumes.loc[resumes.school_2=='Politechnika Poznanska','school_2'] = 'Pozna? University of Technology'

resumes.loc[resumes.school=='Akademia Górniczo-Hutnicza','school'] = 'AGH University of Science and Technology'
resumes.loc[resumes.school_2=='Akademia Górniczo-Hutnicza','school_2'] = 'AGH University of Science and Technology'

resumes.loc[resumes.school=='National University of Córdoba','school'] = 'Universidad Nacional de Córdoba'
resumes.loc[resumes.school_2=='National University of Córdoba','school_2'] = 'Universidad Nacional de Córdoba'

resumes.loc[resumes.school=='National University of La Plata','school'] = 'Universidad Nacional de La Plata'
resumes.loc[resumes.school_2=='National University of La Plata','school_2'] = 'Universidad Nacional de La Plata'

resumes.loc[resumes.school=='National University of Rosario','school'] = 'Universidad Nacional de Rosario'
resumes.loc[resumes.school_2=='National University of Rosario','school_2'] = 'Universidad Nacional de Rosario'

resumes.loc[resumes.school=='Vienna University of Technology','school'] = 'Technische Universität Wien'
resumes.loc[resumes.school_2=='Vienna University of Technology','school_2'] = 'Technische Universität Wien'

resumes.loc[resumes.school=='Graz University of Technology','school'] = 'Technische Universität Graz'
resumes.loc[resumes.school_2=='Graz University of Technology','school_2'] = 'Technische Universität Graz'

resumes.loc[resumes.school=='Fluminense Federal University','school'] = 'Universidade Federal Fluminense'
resumes.loc[resumes.school_2=='Fluminense Federal University','school_2'] = 'Universidade Federal Fluminense'

resumes.loc[resumes.school=='Université de Lausanne','school'] = 'University of Lausanne'
resumes.loc[resumes.school_2=='Université de Lausanne','school_2'] = 'University of Lausanne'

resumes.loc[resumes.school=='University of Valle','school'] = 'Universidad del Valle'
resumes.loc[resumes.school_2=='University of Valle','school_2'] = 'Universidad del Valle'

resumes.loc[resumes.school=='Univerzita Pardubice','school'] = 'University of Pardubice'
resumes.loc[resumes.school_2=='Univerzita Pardubice','school_2'] = 'University of Pardubice'

resumes.loc[resumes.school=='University of Lorraine','school'] = 'Université de Lorraine'
resumes.loc[resumes.school_2=='University of Lorraine','school_2'] = 'Université de Lorraine'

resumes.loc[resumes.school=='University of Montpellier','school'] = 'Université de Montpellier'
resumes.loc[resumes.school_2=='University of Montpellier','school_2'] = 'Université de Montpellier'

resumes.loc[resumes.school=='University of Poitiers','school'] = 'Université de Poitiers'
resumes.loc[resumes.school_2=='University of Poitiers','school_2'] = 'Université de Poitiers'

resumes.loc[resumes.school=='University of Warwick','school'] = 'The University of Warwick'
resumes.loc[resumes.school_2=='University of Warwick','school_2'] = 'The University of Warwick'

resumes.loc[resumes.school=='University of Edinburgh','school'] = 'The University of Edinburgh'
resumes.loc[resumes.school_2=='University of Edinburgh','school_2'] = 'The University of Edinburgh'

resumes.loc[resumes.school=='The University of Manchester','school'] = 'University of Manchester'
resumes.loc[resumes.school_2=='The University of Manchester','school_2'] = 'University of Manchester'

resumes.loc[resumes.school=='University of Nottingham','school'] = 'The University of Nottingham'
resumes.loc[resumes.school_2=='University of Nottingham','school_2'] = 'The University of Nottingham'

resumes.loc[resumes.school=='University of Sheffield','school'] = 'The University of Sheffield'
resumes.loc[resumes.school_2=='University of Sheffield','school_2'] = 'The University of Sheffield'

resumes.loc[resumes.school=='The University of York','school'] = 'University of York'
resumes.loc[resumes.school_2=='The University of York','school_2'] = 'University of York'

resumes.loc[resumes.school=='University POLITEHNICA of Bucharest','school'] = 'Universitatea Politehnica din Bucuresti'
resumes.loc[resumes.school_2=='University POLITEHNICA of Bucharest','school_2'] = 'Universitatea Politehnica din Bucuresti'

resumes.loc[resumes.school=='University of Tennessee, Knoxville','school'] = 'The University of Tennessee-Knoxville'
resumes.loc[resumes.school_2=='University of Tennessee, Knoxville','school_2'] = 'The University of Tennessee-Knoxville'

resumes.loc[resumes.school=='University of Texas at Austin','school'] = 'The University of Texas at Austin'
resumes.loc[resumes.school_2=='University of Texas at Austin','school_2'] = 'The University of Texas at Austin'

resumes.loc[resumes.school=='University of Texas at San Antonio','school'] = 'The University of Texas at San Antonio'
resumes.loc[resumes.school_2=='University of Texas at San Antonio','school_2'] = 'The University of Texas at San Antonio'

resumes.loc[resumes.school=='University of Texas at El Paso','school'] = 'The University of Texas at El Paso'
resumes.loc[resumes.school_2=='University of Texas at El Paso','school_2'] = 'The University of Texas at El Paso'

resumes.loc[resumes.school=='University of Western Cape','school'] = 'University of the Western Cape'
resumes.loc[resumes.school_2=='University of Western Cape','school_2'] = 'University of the Western Cape'

# 2022 additions
resumes.loc[resumes.school=='Universidade Federal de São Paulo','school'] = 'Federal University of São Paulo'
resumes.loc[resumes.school_2=='Universidade Federal de São Paulo','school_2'] = 'Federal University of São Paulo'

resumes.loc[resumes.school=='Universidade Federal do Espírito Santo','school'] = 'Federal University of Espírito Santo'
resumes.loc[resumes.school_2=='Universidade Federal do Espírito Santo','school_2'] = 'Federal University of Espírito Santo'

resumes.loc[resumes.school=='Universidade Federal do Pará','school'] = 'Federal University of Pará'
resumes.loc[resumes.school_2=='Universidade Federal do Pará','school_2'] = 'Federal University of Pará'

resumes.loc[resumes.school=='Universidad de Antioquía','school'] = 'University of Antioquia'
resumes.loc[resumes.school_2=='Universidad de Antioquía','school_2'] = 'University of Antioquia'

resumes.loc[resumes.school=='Universidad de Cantabria','school'] = 'University of Cantabria'
resumes.loc[resumes.school_2=='Universidad de Cantabria','school_2'] = 'University of Cantabria'

resumes.loc[resumes.school=='Universidad de León','school'] = 'University of León'
resumes.loc[resumes.school_2=='Universidad de León','school_2'] = 'University of León'

resumes.loc[resumes.school=='ESCP Europe','school'] = 'ESCP Business School'
resumes.loc[resumes.school_2=='ESCP Europe','school_2'] = 'ESCP Business School'

resumes.loc[resumes.school=='ESCP Europe','school'] = 'ESCP Business School'
resumes.loc[resumes.school_2=='ESCP Europe','school_2'] = 'ESCP Business School'

resumes.loc[resumes.school=='Université de Rennes 1','school'] = 'University of Rennes 1'
resumes.loc[resumes.school_2=='Université de Rennes 1','school_2'] = 'University of Rennes 1'

resumes.loc[resumes.school=='Università degli Studi di Roma Tor Vergata','school'] = 'University of Rome Tor Vergata'
resumes.loc[resumes.school_2=='Università degli Studi di Roma Tor Vergata','school_2'] = 'University of Rome Tor Vergata'

resumes.loc[resumes.school=='University of Guanajuato','school'] = 'Universidad de Guanajuato'
resumes.loc[resumes.school_2=='University of Guanajuato','school_2'] = 'Universidad de Guanajuato'

resumes.loc[resumes.school=='Rijksuniversiteit Groningen','school'] = 'University of Groningen'
resumes.loc[resumes.school_2=='Rijksuniversiteit Groningen','school_2'] = 'University of Groningen'

resumes.loc[resumes.school=="Mount Saint Mary's University",'school'] = "Mount St. Mary's University"
resumes.loc[resumes.school_2=="Mount Saint Mary's University",'school_2'] = "Mount St. Mary's University"

resumes.loc[resumes.school=="University of California, Berkeley",'school'] = "University of California-Berkeley"
resumes.loc[resumes.school_2=="University of California, Berkeley",'school_2'] = "University of California-Berkeley"

resumes.loc[resumes.school=="University of California, Merced",'school'] = "University of California-Merced"
resumes.loc[resumes.school_2=="University of California, Merced",'school_2'] = "University of California-Merced"

resumes.loc[resumes.school=="University of Maine, Orono",'school'] = "University of Maine"
resumes.loc[resumes.school_2=="University of Maine, Orono",'school_2'] = "University of Maine"

resumes.loc[resumes.school=="California State University, Fullerton",'school'] = "California State University-Fullerton"
resumes.loc[resumes.school_2=="California State University, Fullerton",'school_2'] = "California State University-Fullerton"

resumes.loc[resumes.school=="California State University, Northridge",'school'] = "California State University-Northridge"
resumes.loc[resumes.school_2=="California State University, Northridge",'school_2'] = "California State University-Northridge"

schoolNations = resumes.groupby(['school','Nation']).size().reset_index()
schoolNations = schoolNations[schoolNations[0]>=100]

##############################################################################
# Save
##############################################################################

resumes = resumes[resumes.Nation.notnull()]
resumes = resumes[resumes.Nation!="nan"]

resumes.sort_values(['FK_userId'],inplace=True)

resumes.to_csv(savePath + "Cleaned_user_schools_majors.csv")

#resumes = pd.read_csv(savePath + "Cleaned_user_schools_majors.csv")
#del resumes['Unnamed: 0']

allUniversities = resumes.groupby('school').size().reset_index()

allUniversitiesCountries = resumes.groupby(['Nation','school']).size().reset_index()

print("Finished R_create_clean_user_schools_majors.")
